X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fwebpack%2Fwebpack.video-embed.js;h=3f280519200d424f93d82fed34bc2acd03d03d6d;hb=cf97badfa42d1f40b67aa5ac3e0b66f385e42fcd;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..3f2805192 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js @@ -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: '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,