diff --git a/package.json b/package.json index 52fb660..f2affa3 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "esformatter-quotes": "^1.0.3", "esformatter-semicolons": "^1.1.2", "eslint": "^1.10.3", + "strip-sourcemap-loader": "0.0.1", "webpack": "^1.12.11" }, "dependencies": { diff --git a/webpack.config.js b/webpack.config.js index 2e39bf0..44170f8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,4 +1,5 @@ module.exports = { + devtool: 'source-map', entry: { index: './src/entry/index.js', editor: './src/entry/editor.js' @@ -9,6 +10,11 @@ module.exports = { }, module: { loaders: [ + { + test: /\.js$/, + include: /node_modules/, + loaders: ['strip-sourcemap-loader'] + }, { loader: 'babel-loader', exclude: /node_modules/,