summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--babel.config.js12
-rw-r--r--webpack.common.js2
2 files changed, 13 insertions, 1 deletions
diff --git a/babel.config.js b/babel.config.js
new file mode 100644
index 000000000..3a365aec6
--- /dev/null
+++ b/babel.config.js
@@ -0,0 +1,12 @@
+module.exports = {
+ presets: [
+ [
+ '@babel/preset-env',
+ {
+ corejs: 3,
+ useBuiltIns: 'usage',
+ modules: false,
+ },
+ ],
+ ],
+}
diff --git a/webpack.common.js b/webpack.common.js
index 2a2e1b3f2..2e0ad336b 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -42,7 +42,7 @@ module.exports = {
{
test: /\.js$/,
loader: 'babel-loader',
- exclude: /node_modules/,
+ exclude: /node_modules(?!(\/|\\)(@juliushaertl\/vue-richtext|fast-xml-parser|hot-patcher|nextcloud-vue-collections|webdav)(\/|\\))/,
},
{
/**