mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 02:55:41 +00:00
b59298ec0e
* accept hot module changes, move routes into root component * Fix "You cannot change <Router routes>; it will be ignored" error message by implementing solution in Github: https://github.com/ReactTraining/react-router/issues/2704#issuecomment-211352123 Router is only instantiated once in a production setting (e.g. not webpack-dev-server), so there is minimal overhead on producing a random key value for `Router`.
31 lines
531 B
Plaintext
31 lines
531 B
Plaintext
{
|
|
"plugins": [
|
|
[
|
|
"transform-runtime",
|
|
{
|
|
"helpers": false,
|
|
"polyfill": false,
|
|
"regenerator": true,
|
|
"moduleName": "babel-runtime"
|
|
}
|
|
],
|
|
[
|
|
"module-resolver",
|
|
{
|
|
"root": ["./common"],
|
|
"alias": {
|
|
"underscore": "lodash"
|
|
},
|
|
"cwd": "babelrc"
|
|
}
|
|
],
|
|
"react-hot-loader/babel"
|
|
],
|
|
"presets": ["es2015", "react", "stage-0", "flow"],
|
|
"env": {
|
|
"production": {
|
|
"presets": ["react-optimize"]
|
|
}
|
|
}
|
|
}
|