forked from channel-io/bezier-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.js
28 lines (28 loc) · 878 Bytes
/
babel.config.js
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
module.exports = {
env: {
test: {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-react',
['@babel/preset-typescript', { isTSX: true, allExtensions: true }],
],
plugins: [
'@babel/plugin-transform-runtime',
['@babel/plugin-proposal-private-property-in-object', { loose: false }],
['@babel/plugin-proposal-class-properties', { loose: false }],
],
},
build: {
presets: [
['@babel/preset-env'],
'@babel/preset-react',
['@babel/preset-typescript', { isTSX: true, allExtensions: true }],
],
plugins: [
'@babel/plugin-transform-runtime',
['@babel/plugin-proposal-private-property-in-object', { loose: false }],
['@babel/plugin-proposal-class-properties', { loose: false }],
],
},
},
}