2024-05-09 21:20:32 +03:00
|
|
|
/**
|
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*/
|
2018-09-10 13:02:26 +03:00
|
|
|
module.exports = {
|
2019-05-23 18:03:04 +03:00
|
|
|
plugins: [
|
|
|
|
'@babel/plugin-syntax-dynamic-import',
|
2024-06-25 01:00:31 +03:00
|
|
|
'@babel/plugin-transform-class-properties',
|
2024-08-03 10:44:12 +03:00
|
|
|
'@babel/plugin-transform-private-methods',
|
2024-06-11 01:23:59 +03:00
|
|
|
// 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",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
2019-05-23 18:03:04 +03:00
|
|
|
],
|
2018-09-10 13:02:26 +03:00
|
|
|
presets: [
|
2022-12-01 16:34:23 +03:00
|
|
|
// https://babeljs.io/docs/en/babel-preset-typescript
|
|
|
|
'@babel/preset-typescript',
|
2018-09-10 13:02:26 +03:00
|
|
|
[
|
|
|
|
'@babel/preset-env',
|
|
|
|
{
|
2020-03-10 11:58:52 +03:00
|
|
|
useBuiltIns: false,
|
2023-01-13 19:32:57 +03:00
|
|
|
modules: 'auto',
|
2020-04-02 11:53:41 +03:00
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
}
|