diff options
Diffstat (limited to 'babel.config.js')
-rw-r--r-- | babel.config.js | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/babel.config.js b/babel.config.js index 1d5dc3b6de0..523dbe5de01 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,7 +1,22 @@ +/** + * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ module.exports = { plugins: [ '@babel/plugin-syntax-dynamic-import', - '@babel/plugin-proposal-class-properties', + '@babel/plugin-transform-class-properties', + '@babel/plugin-transform-private-methods', + // We need the bundler entry not the web one + // Jest will otherwise resolve the wrong one + [ + "module-resolver", + { + "alias": { + "webdav$": "webdav/dist/node/index.js", + }, + }, + ] ], presets: [ // https://babeljs.io/docs/en/babel-preset-typescript @@ -10,6 +25,7 @@ module.exports = { '@babel/preset-env', { useBuiltIns: false, + modules: 'auto', }, ], ], |