Skip to content

Commit f7bf148

Browse files
hansljelbourn
authored andcommitted
chore: add root to the sourcemap so it won't use absolute pathing (#636)
1 parent fbdb35b commit f7bf148

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

angular-cli-build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ function _buildAppTree(defaults) {
101101
vendorNpmFiles: [
102102
'systemjs/dist/system-polyfills.js',
103103
'systemjs/dist/system.src.js',
104-
'zone.js/dist/*.js',
104+
'zone.js/dist/*.+(js|js.map)',
105105
'core-js/client/core.js',
106-
'rxjs/**/*.js',
107-
'@angular/**/*.js',
106+
'rxjs/**/*.+(js|js.map)',
107+
'@angular/**/*.+(js|js.map)',
108108
'hammerjs/*.min.+(js|js.map)'
109109
]
110110
});

src/demo-app/system-config.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const components = [
2323
'toolbar'
2424
];
2525

26-
2726
/** Map relative paths to URLs. */
2827
const map: any = {
2928
'@angular2-material/core': 'core',
@@ -45,6 +44,7 @@ components.forEach(name => {
4544
};
4645
});
4746

47+
4848
////////////////////////////////////////////////////////////////////////////////////////////////
4949
/***********************************************************************************************
5050
* Everything underneath this line is managed by the CLI.
@@ -63,8 +63,13 @@ const barrels: string[] = [
6363
'rxjs',
6464

6565
// App specific barrels.
66-
'app',
67-
'app/shared',
66+
'demo-app',
67+
'button-toggle',
68+
'gestures',
69+
'live-announcer',
70+
'portal',
71+
'overlay',
72+
...components
6873
/** @cli-barrel */
6974
];
7075

src/demo-app/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"declaration": true,
44
"emitDecoratorMetadata": true,
55
"experimentalDecorators": true,
6-
"mapRoot": "",
6+
"mapRoot": "/",
77
"module": "commonjs",
88
"moduleResolution": "node",
99
"noEmitOnError": true,

src/e2e-app/system-config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ const barrels: string[] = [
6262
'rxjs',
6363

6464
// App specific barrels.
65-
'app',
66-
'app/shared',
65+
'e2e-app',
6766
/** @cli-barrel */
6867
];
6968

0 commit comments

Comments
 (0)