Skip to content

Commit 450b524

Browse files
authored
Merge d601e84 into 2cbf362
2 parents 2cbf362 + d601e84 commit 450b524

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

babel.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ module.exports = {
77
[
88
'@babel/preset-env',
99
{
10-
modules: false,
10+
corejs: 3,
11+
useBuiltIns: 'entry',
1112
},
1213
],
1314
],

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@
4242
"@nextcloud/router": "^1.0.2",
4343
"@nextcloud/vue": "^1.4.1",
4444
"camelcase": "^5.3.1",
45+
"core-js": "^3.6.4",
4546
"debounce": "^1.2.0",
4647
"nextcloud-server": "^0.15.10",
4748
"path-parse": "^1.0.6",
49+
"regenerator-runtime": "^0.13.5",
4850
"vue": "^2.6.11",
4951
"vue-async-computed": "^3.8.2",
5052
"vue-plyr": "^6.0.4",

webpack.common.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ module.exports = {
3636
exclude: /node_modules/,
3737
},
3838
{
39-
test: /\.js$/,
39+
// vue-plyr uses .mjs file
40+
test: /\.m?js$/,
4041
loader: 'babel-loader',
41-
exclude: /node_modules/,
42+
exclude: /node_modules(?!(\/|\\)(camelcase|fast-xml-parser|hot-patcher|vue-plyr|webdav)(\/|\\))/,
4243
},
4344
{
4445
test: /\.(png|jpg|gif|svg)$/,

0 commit comments

Comments
 (0)