]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/webpack/webpack.video-embed.js
Add videoUUID to playback metrics
[github/Chocobozzz/PeerTube.git] / client / webpack / webpack.video-embed.js
index 8cd606b39310201cc7f6f838db3e37a6086ab3e9..3f280519200d424f93d82fed34bc2acd03d03d6d 100644 (file)
@@ -24,6 +24,8 @@ module.exports = function () {
 
       modules: [ helpers.root('src'), 'node_modules' ],
 
+      symlinks: true,
+
       alias: {
         'video.js$': path.resolve('node_modules/video.js/core.js'),
         'hls.js$': path.resolve('node_modules/hls.js/dist/hls.light.js'),
@@ -69,7 +71,24 @@ module.exports = function () {
             {
               loader: 'ts-loader',
               options: {
-                configFile: helpers.root('tsconfig.json')
+                configFile: helpers.root('src/standalone/videos/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 +190,7 @@ module.exports = function () {
             ecma: 6,
             warnings: false,
             ie8: false,
+            safari10: true,
             mangle: true,
             compress: {
               passes: 3,