Skip to content

Commit

Permalink
fixed webpack source map
Browse files Browse the repository at this point in the history
  • Loading branch information
keyz committed Mar 12, 2016
1 parent 89ff048 commit bc7998e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
20 changes: 3 additions & 17 deletions .babelrc
@@ -1,22 +1,8 @@
{
"presets": ["react", "es2015", "stage-0"],
"presets": [ "react", "es2015", "stage-0" ],
"env": {
"development": {
"plugins": [
["react-transform", {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}, {
"transform": "react-transform-catch-errors",
"imports": ["react", "redbox-react"]
}]
}]
]
"presets": [ "react-hmre" ],
},
"test": {
"plugins": [],
}
}
},
}
5 changes: 1 addition & 4 deletions package.json
Expand Up @@ -35,9 +35,9 @@
"babel-core": "^6.5.2",
"babel-eslint": "^5.0.0",
"babel-loader": "^6.2.3",
"babel-plugin-react-transform": "^2.0.0",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-react-hmre": "^1.1.1",
"babel-preset-stage-0": "^6.3.13",
"coveralls": "^2.11.6",
"css-loader": "^0.23.0",
Expand All @@ -60,9 +60,6 @@
"postcss-modules-scope": "^1.0.0",
"postcss-modules-values": "^1.1.1",
"react-addons-test-utils": "^0.14.6",
"react-transform-catch-errors": "^1.0.1",
"react-transform-hmr": "^1.0.1",
"redbox-react": "^1.2.0",
"rimraf": "^2.5.0",
"style-loader": "^0.13.0",
"url-loader": "^0.5.7",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Expand Up @@ -10,7 +10,7 @@ const defineConstPlugin = new webpack.DefinePlugin({
});

module.exports = {
devtool: isDev ? 'cheap-module-eval-source-map' : 'source-map',
devtool: isDev ? '#cheap-module-eval-source-map' : 'source-map',

entry: isDev ? [
'babel-polyfill',
Expand Down

0 comments on commit bc7998e

Please sign in to comment.