Added babel polyfill and lodash
This commit is contained in:
7
.babelrc
7
.babelrc
@ -1,9 +1,12 @@
|
||||
{
|
||||
"presets": ["react", "es2015", "stage-0"],
|
||||
"plugins": ["transform-decorators-legacy"],
|
||||
"plugins": [
|
||||
"lodash",
|
||||
"transform-decorators-legacy"
|
||||
],
|
||||
"env": {
|
||||
"development": {
|
||||
"presets": ["react-hmre"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -28,8 +28,9 @@
|
||||
"babel-core": "6.10.4",
|
||||
"babel-eslint": "6.1.0",
|
||||
"babel-loader": "6.2.1",
|
||||
"babel-plugin-lodash": "^3.2.6",
|
||||
"babel-plugin-transform-decorators-legacy": "1.3.4",
|
||||
"babel-polyfill": "6.7.4",
|
||||
"babel-polyfill": "^6.7.4",
|
||||
"babel-preset-es2015": "6.3.13",
|
||||
"babel-preset-react": "6.3.13",
|
||||
"babel-preset-react-hmre": "1.0.1",
|
||||
|
@ -9,6 +9,7 @@ productionWebpackConfig = Object.assign(commonWebpackConfig, {
|
||||
cache: true,
|
||||
devtool: 'cheap-module-source-map',
|
||||
entry: [
|
||||
'babel-polyfill',
|
||||
'babel-regenerator-runtime',
|
||||
'./src/index',
|
||||
],
|
||||
|
Reference in New Issue
Block a user