forked from bbc/react-transcript-editor
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
25 lines (25 loc) · 605 Bytes
/
babel.config.js
File metadata and controls
25 lines (25 loc) · 605 Bytes
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
// following babel 7, system wide config at root level
// https://babeljs.io/docs/en/next/config-files#project-wide-configuration
// https://stackoverflow.com/questions/52387820/babel7-jest-unexpected-token-export/52388264
module.exports = {
presets: [
[
'@babel/preset-env', {
targets: { node: 'current' }
}
],
'@babel/preset-react',
[
'minify',
{
builtIns: false,
evaluate: false,
mangle: false
}
]
],
plugins: [
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-class-properties'
]
};