diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-06-11 00:23:59 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-06-11 15:45:22 +0200 |
commit | 8fc828e0e2cdea9b9ba822a344bc34bf707711ee (patch) | |
tree | f3fb88dac202dbbbf75d682d1fc95118f282a5e3 /babel.config.js | |
parent | 53324821be9af80f9269454dfcbd4066369f1ea4 (diff) | |
download | nextcloud-server-8fc828e0e2cdea9b9ba822a344bc34bf707711ee.tar.gz nextcloud-server-8fc828e0e2cdea9b9ba822a344bc34bf707711ee.zip |
fix(files): Adjust babel module resolution
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'babel.config.js')
-rw-r--r-- | babel.config.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/babel.config.js b/babel.config.js index 0cbaa9396cb..044e5a3fed1 100644 --- a/babel.config.js +++ b/babel.config.js @@ -6,6 +6,16 @@ module.exports = { plugins: [ '@babel/plugin-syntax-dynamic-import', '@babel/plugin-proposal-class-properties', + // 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 |