1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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
'@babel/preset-typescript',
[
'@babel/preset-env',
{
useBuiltIns: false,
modules: 'auto',
},
],
],
}
|