-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.babelrc.cjs
36 lines (31 loc) · 967 Bytes
/
.babelrc.cjs
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
28
29
30
31
32
33
34
35
36
// SPDX-FileCopyrightText: Nextcloud contributors
// SPDX-License-Identifier: AGPL-3.0-or-later
// keep json compatible key naming (double quotes) and comma trailing
/* eslint-disable quotes, quote-props */
// Babel supports ESM configuration, but babel-loader still chokes
// Align with Nextcloud
// https://github.com/nextcloud/babel-config
// const babelConfig = require('@nextcloud/babel-config')
// module.exports = babelConfig
// do not include, but unroll manually and extend
// https://github.com/nextcloud/babel-config/blob/master/index.js
module.exports = {
"presets": [
[
"@babel/preset-env",
{
// "useBuiltIns": false,
// "modules": "auto",
"modules": false,
"useBuiltIns": "usage",
"corejs": '3.28',
"forceAllTransforms": false,
"ignoreBrowserslistConfig": false,
"debug": false,
},
],
],
"plugins": [
"@babel/plugin-syntax-dynamic-import",
],
};