]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/webpack/webpack.video-embed.js
Add ability for plugins to register client routes
[github/Chocobozzz/PeerTube.git] / client / webpack / webpack.video-embed.js
index 8cd606b39310201cc7f6f838db3e37a6086ab3e9..13bcf9717316acd1d43daeb04848f28ae4146504 100644 (file)
@@ -74,6 +74,23 @@ module.exports = function () {
             }
           ]
         },
+        {
+          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'
+                    }
+                  ]
+                ]
+              }
+            }
+          ]
+        },
 
         {
           test: /\.(sass|scss)$/,