forked from zendeskgarden/react-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbabel.config.js
35 lines (34 loc) · 813 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
29
30
31
32
33
34
35
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: '> 0.5%, last 2 versions, Firefox ESR, not dead'
}
],
'@babel/preset-react'
],
plugins: [
'@babel/plugin-transform-object-assign',
[
'@babel/plugin-proposal-class-properties',
{
loose: true
}
],
'babel-plugin-styled-components',
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
['@babel/plugin-proposal-private-methods', { loose: true }]
],
env: {
production: {
plugins: [['react-remove-properties', { properties: [/data-test/u] }]]
}
}
};