fix: fix source maps

This commit is contained in:
vsavkin 2016-05-23 16:28:11 -07:00
parent f259a2204b
commit 1be9ea681b
5 changed files with 13 additions and 8 deletions

View File

@ -38,6 +38,10 @@ module.exports = function(config) {
{pattern: 'dist/**/*.js.map', included: false, watched: false} {pattern: 'dist/**/*.js.map', included: false, watched: false}
], ],
preprocessors: {
'**/*.js': ['sourcemap']
},
reporters: ['mocha'], reporters: ['mocha'],
port: 9876, port: 9876,
colors: true, colors: true,

View File

@ -53,6 +53,7 @@
"karma-jasmine": "^0.3.6", "karma-jasmine": "^0.3.6",
"karma-mocha-reporter": "^2.0.2", "karma-mocha-reporter": "^2.0.2",
"karma-systemjs": "^0.10.0", "karma-systemjs": "^0.10.0",
"karma-sourcemap-loader": "~0.3",
"parse5": "^1.3.2", "parse5": "^1.3.2",
"protractor": "3.0.0", "protractor": "3.0.0",
"reflect-metadata": "0.1.2", "reflect-metadata": "0.1.2",

View File

@ -7,8 +7,8 @@
"noImplicitAny": false, "noImplicitAny": false,
"outDir": "dist", "outDir": "dist",
"rootDir": ".", "rootDir": ".",
"sourceMap": true, "inlineSourceMap": true,
"sourceRoot": "./", "inlineSources": true,
"declaration": true, "declaration": true,
"removeComments": true "removeComments": true
}, },

View File

@ -7,9 +7,9 @@
"target": "es5", "target": "es5",
"noImplicitAny": false, "noImplicitAny": false,
"outDir": "dist", "outDir": "dist",
"rootDir": "src", "rootDir": ".",
"sourceMap": true, "inlineSourceMap": true,
"sourceRoot": "./", "inlineSources": true,
"declaration": true, "declaration": true,
"removeComments": true "removeComments": true
}, },

View File

@ -6,9 +6,9 @@
"target": "es6", "target": "es6",
"noImplicitAny": false, "noImplicitAny": false,
"outDir": "dist/es6", "outDir": "dist/es6",
"rootDir": "src", "rootDir": ".",
"sourceMap": true, "inlineSourceMap": true,
"sourceRoot": "./", "inlineSources": true,
"declaration": true, "declaration": true,
"removeComments": true, "removeComments": true,
"moduleResolution": "node" "moduleResolution": "node"