forked from ruzyysmartt/MyCrypto-repository
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbabel.config.js
More file actions
22 lines (22 loc) · 589 Bytes
/
babel.config.js
File metadata and controls
22 lines (22 loc) · 589 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
'presets': [
'@babel/preset-react',
'@babel/preset-typescript',
[
'@babel/preset-env',
{
// The following plugin fixes false warnings
// "export '...' was not found in '...' "
// https://github.com/webpack-contrib/imports-loader/issues/68
'modules': ['commonjs'],
}
]
],
'plugins': [
'babel-plugin-styled-components',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-syntax-dynamic-import',
'react-hot-loader/babel',
]
};