From cdcd8ac1e27432a3b9e5543b5d9dc35b90606a0b Mon Sep 17 00:00:00 2001 From: Martin Reinhardt Date: Tue, 25 Apr 2017 09:41:40 +0200 Subject: [PATCH] fix(source-map-error): Solve source mapping issue --- etc/webpack.common.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/etc/webpack.common.js b/etc/webpack.common.js index 0e85efb..5c25b69 100755 --- a/etc/webpack.common.js +++ b/etc/webpack.common.js @@ -164,10 +164,13 @@ var config = { loader: 'source-map-loader', exclude: [ // these packages have problems with their sourcemaps - helpers.root('node_modules/rxjs'), - helpers.root('node_modules/@angular'), - helpers.root('node_modules/@ngrx'), - helpers.root('node_modules/@angular2-material') + path.resolve(__dirname, '../../../ionic-angular'), + path.resolve(__dirname, '../../../@ionic'), + path.resolve(__dirname, '../../../@ionic-native'), + path.resolve(__dirname, '../../../@rxjs'), + path.resolve(__dirname, '../../../@angular'), + path.resolve(__dirname, '../../../@ngrx'), + path.resolve(__dirname, '../../../@angular2-material') ], enforce: 'pre' },