]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/webpack/webpack.video-embed.js
Fix log parser with multiple files
[github/Chocobozzz/PeerTube.git] / client / webpack / webpack.video-embed.js
index 4c7f7e19cab8e81bce36328da17eb941298da94f..f5c75dd47597c1cfa357b7ec9ef9a8ecc4d12a17 100644 (file)
@@ -69,7 +69,24 @@ module.exports = function () {
             {
               loader: 'ts-loader',
               options: {
-                configFile: 'tsconfig.json'
+                configFile: helpers.root('tsconfig.json')
+              }
+            }
+          ]
+        },
+        {
+          test: /\.m?js$/,
+          use: [
+            {
+              loader: 'babel-loader',
+              options: {
+                presets: [
+                  [
+                    '@babel/preset-env', {
+                      targets: 'last 1 Chrome version, last 2 Edge major versions, Firefox ESR, Safari >= 11, ios_saf >= 11'
+                    }
+                  ]
+                ]
               }
             }
           ]
@@ -171,6 +188,7 @@ module.exports = function () {
             ecma: 6,
             warnings: false,
             ie8: false,
+            safari10: true,
             mangle: true,
             compress: {
               passes: 3,