Skip to content

Commit

Permalink
Merge pull request linnovate#248 from shlomiassaf/support-sourcemap-i…
Browse files Browse the repository at this point in the history
…n-libs

feat(sourcemap): Proper source maps for 3rd party packages
  • Loading branch information
PatrickJS committed Jan 23, 2016
2 parents 9c92b85 + 66f8083 commit cbb8fd3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"remap-istanbul": "^0.5.1",
"rimraf": "^2.4.4",
"semver": "*",
"source-map-loader": "^0.1.5",
"style-loader": "^0.13.0",
"ts-helper": "0.0.1",
"ts-loader": "^0.8.0",
Expand Down
18 changes: 17 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,23 @@ module.exports = {
},

module: {
preLoaders: [{ test: /\.ts$/, loader: 'tslint-loader', exclude: [/node_modules/] }],
preLoaders: [
{
test: /\.ts$/,
loader: 'tslint-loader',
exclude: [/node_modules/]
},
// rewire source map files of libraries, use to debug into 3rd party libraries
{
test: /\.js$/,
include: [
path.resolve(__dirname, "node_modules", "angular2")
// Add more as needed or replace to include all modules:
//path.resolve(__dirname, "node_modules2")
],
loader: "source-map-loader"
}
],
loaders: [
// Support for .ts files.
{
Expand Down

0 comments on commit cbb8fd3

Please sign in to comment.