chore: add root to the sourcemap so it won't use absolute pathing (#636)

This commit is contained in:
Hans
2016-06-10 10:22:41 -07:00
committed by Jeremy Elbourn
parent fbdb35b4e9
commit f7bf1483a9
4 changed files with 13 additions and 9 deletions
+3 -3
View File
@@ -101,10 +101,10 @@ function _buildAppTree(defaults) {
vendorNpmFiles: [
'systemjs/dist/system-polyfills.js',
'systemjs/dist/system.src.js',
'zone.js/dist/*.js',
'zone.js/dist/*.+(js|js.map)',
'core-js/client/core.js',
'rxjs/**/*.js',
'@angular/**/*.js',
'rxjs/**/*.+(js|js.map)',
'@angular/**/*.+(js|js.map)',
'hammerjs/*.min.+(js|js.map)'
]
});
+8 -3
View File
@@ -23,7 +23,6 @@ const components = [
'toolbar'
];
/** Map relative paths to URLs. */
const map: any = {
'@angular2-material/core': 'core',
@@ -45,6 +44,7 @@ components.forEach(name => {
};
});
////////////////////////////////////////////////////////////////////////////////////////////////
/***********************************************************************************************
* Everything underneath this line is managed by the CLI.
@@ -63,8 +63,13 @@ const barrels: string[] = [
'rxjs',
// App specific barrels.
'app',
'app/shared',
'demo-app',
'button-toggle',
'gestures',
'live-announcer',
'portal',
'overlay',
...components
/** @cli-barrel */
];
+1 -1
View File
@@ -3,7 +3,7 @@
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"mapRoot": "",
"mapRoot": "/",
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
+1 -2
View File
@@ -62,8 +62,7 @@ const barrels: string[] = [
'rxjs',
// App specific barrels.
'app',
'app/shared',
'e2e-app',
/** @cli-barrel */
];