aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/webpack/webpack.video-embed.js32
1 files changed, 18 insertions, 14 deletions
diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js
index 3f2805192..120eedade 100644
--- a/client/webpack/webpack.video-embed.js
+++ b/client/webpack/webpack.video-embed.js
@@ -68,6 +68,8 @@ module.exports = function () {
68 { 68 {
69 test: /\.ts$/, 69 test: /\.ts$/,
70 use: [ 70 use: [
71 getBabelLoader(),
72
71 { 73 {
72 loader: 'ts-loader', 74 loader: 'ts-loader',
73 options: { 75 options: {
@@ -78,20 +80,7 @@ module.exports = function () {
78 }, 80 },
79 { 81 {
80 test: /\.m?js$/, 82 test: /\.m?js$/,
81 use: [ 83 use: [ getBabelLoader() ]
82 {
83 loader: 'babel-loader',
84 options: {
85 presets: [
86 [
87 '@babel/preset-env', {
88 targets: 'last 1 Chrome version, last 2 Edge major versions, Firefox ESR, Safari >= 11, ios_saf >= 11'
89 }
90 ]
91 ]
92 }
93 }
94 ]
95 }, 84 },
96 85
97 { 86 {
@@ -217,3 +206,18 @@ module.exports = function () {
217 206
218 return configuration 207 return configuration
219} 208}
209
210function getBabelLoader () {
211 return {
212 loader: 'babel-loader',
213 options: {
214 presets: [
215 [
216 '@babel/preset-env', {
217 targets: 'last 1 Chrome version, last 2 Edge major versions, Firefox ESR, Safari >= 11, ios_saf >= 11'
218 }
219 ]
220 ]
221 }
222 }
223}