diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-06-16 09:44:35 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-07-14 15:54:43 +0300 |
commit | 86b446f8490707cb58c1b4d879e24dd7d9e66212 (patch) | |
tree | 92458e325d34b83226bd073ed1c75ca38b59d357 /babel.config.js | |
parent | c6b34c47c8d389268d01e6c62b6a81f913e74c98 (diff) |
Move to shared babel/webpack config
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'babel.config.js')
-rw-r--r-- | babel.config.js | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/babel.config.js b/babel.config.js index 27f03899c..8be4fc38b 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,32 +1,3 @@ -module.exports = { - plugins: [ - '@babel/plugin-syntax-dynamic-import', - '@babel/plugin-transform-classes', - ['@babel/plugin-proposal-class-properties', { loose: true }], - '@babel/plugin-transform-modules-commonjs' - ], - presets: [ - [ - '@babel/preset-env', - { - corejs: 3, - useBuiltIns: 'entry', - }, - ], - ], - env: { - test: { - presets: [ - [ - "@babel/preset-env", - { - "targets": { - "node": "current" - } - } - ] - ] - } - } -} +const babelConfig = require('@nextcloud/babel-config') +module.exports = babelConfig |