X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fwebpack%2Fwebpack.video-embed.js;h=13bcf9717316acd1d43daeb04848f28ae4146504;hb=77d0ae7b201264423d81e1019139eac3d7716536;hp=8cd606b39310201cc7f6f838db3e37a6086ab3e9;hpb=893f0f2f0f9c8f5b9f829e48691b0a236e229868;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js index 8cd606b39..13bcf9717 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js @@ -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)$/,