Added babel polyfill and lodash

This commit is contained in:
Jori Lallo
2016-07-23 12:50:48 -07:00
parent 71f68a8af4
commit 2992136fa9
3 changed files with 8 additions and 3 deletions

View File

@ -1,9 +1,12 @@
{
"presets": ["react", "es2015", "stage-0"],
"plugins": ["transform-decorators-legacy"],
"plugins": [
"lodash",
"transform-decorators-legacy"
],
"env": {
"development": {
"presets": ["react-hmre"]
}
}
}
}

View File

@ -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",

View File

@ -9,6 +9,7 @@ productionWebpackConfig = Object.assign(commonWebpackConfig, {
cache: true,
devtool: 'cheap-module-source-map',
entry: [
'babel-polyfill',
'babel-regenerator-runtime',
'./src/index',
],