0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-05-01 12:30:27 +00:00
nextcloud_server/babel.config.js
skjnldsv 48a643f8c1 fix: update babel and fix karma
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-03-06 16:32:44 +01:00

28 lines
561 B
JavaScript

module.exports = {
plugins: [
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-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
'@babel/preset-typescript',
[
'@babel/preset-env',
{
useBuiltIns: false,
modules: 'auto',
},
],
],
}