X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fwebpack%2Fwebpack.video-embed.js;h=13bcf9717316acd1d43daeb04848f28ae4146504;hb=d63e6d4604dfbe4938c7d66832c9202364c5bb64;hp=4c7f7e19cab8e81bce36328da17eb941298da94f;hpb=87244e54bbb7e455a394c69386fb5021237627ac;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js index 4c7f7e19c..13bcf9717 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js @@ -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' + } + ] + ] } } ]