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