Permalink
Browse files

fix(webpack): enable sourcemaps by default

  • Loading branch information...
JeroenVinke committed Aug 23, 2017
1 parent 4880c19 commit 0525dca45a66658fe66e76a3193e93d58d659cc4
@@ -201,7 +201,7 @@
"options": {
"server": "dev",
"extractCss": "prod",
"coverage": "dev"
"coverage": false
}
},
"unitTestRunner": [{
@@ -1,6 +1,7 @@
{
"compileOnSave": false,
"compilerOptions": {
// @if bundler.id='cli'
"sourceMap": true,
"target": "es5",
"module": "amd",
@@ -11,8 +12,22 @@
"experimentalDecorators": true,
"allowJs": true,
"moduleResolution": "node",
"lib": ["es2017", "dom"],
"skipLibCheck": true
"lib": ["es2017", "dom"]
// @endif
// @if bundler.id='webpack'
"target": "es5",
"module": "esnext",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"sourceRoot": "src",
"allowJs": true,
"baseUrl": "src",
"skipLibCheck": true,
"lib": [
"es2017", "dom"
]
// @endif
},
"exclude": [
"node_modules",
@@ -57,6 +57,7 @@ module.exports = ({production, server, extractCss, coverage} = {}) => ({
// serve index.html for all 404 (required for push-state)
historyApiFallback: true
},
devtool: production ? 'nosources-source-map' : 'cheap-module-eval-source-map',
module: {
rules: [
// CSS required in JS/TS files should use the style-loader that auto-injects it into the website

0 comments on commit 0525dca

Please sign in to comment.