aboutsummaryrefslogtreecommitdiffstats
path: root/babel.config.js
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-06-11 00:23:59 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-06-11 15:45:22 +0200
commit8fc828e0e2cdea9b9ba822a344bc34bf707711ee (patch)
treef3fb88dac202dbbbf75d682d1fc95118f282a5e3 /babel.config.js
parent53324821be9af80f9269454dfcbd4066369f1ea4 (diff)
downloadnextcloud-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.js10
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