From 6e0356ef681b8f585c607a32c3c0f1977f807e9d Mon Sep 17 00:00:00 2001 From: Tim Mickel Date: Wed, 13 Jan 2016 15:20:19 -0500 Subject: [PATCH] Adding strip-sourcemap-loader for Safari source maps --- package.json | 1 + webpack.config.js | 6 ++++++ 2 files changed, 7 insertions(+) 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/,