-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
46 lines (46 loc) · 1.2 KB
/
babel.config.js
File metadata and controls
46 lines (46 loc) · 1.2 KB
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
37
38
39
40
41
42
43
44
45
46
/*
* Copyright (c) 2021, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 12
}
}
],
'@babel/preset-react'
],
plugins: [
'@babel/plugin-transform-async-to-generator',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-transform-object-assign',
[
'@babel/plugin-transform-runtime',
{
regenerator: true
}
],
'@babel/syntax-dynamic-import',
'@loadable/babel-plugin',
'@babel/plugin-proposal-optional-chaining',
[
'formatjs',
{
idInterpolationPattern: '[sha512:contenthash:base64:6]',
ast: true
}
]
],
env: {
test: {
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: ['dynamic-import-node-babel-7']
}
}
}