Skip to content

Commit 905f38a

Browse files
committed
build: fix source map paths for npm packages
the bundles have source mpas disabled for now because when we downlevel the esm bundle to es5 tsc doesn't consider the original source map so we end up with a source map pointing to the esm bundle instead which is not useful.
1 parent 38f4c5f commit 905f38a

30 files changed

+20
-30
lines changed

modules/@angular/common/rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
export default {
33
entry: '../../../dist/packages-dist/common/esm/index.js',
44
dest: '../../../dist/packages-dist/common/esm/common.umd.js',
5-
sourceMap: true,
65
format: 'umd',
76
moduleName: 'ng.common',
87
globals: {

modules/@angular/common/tsconfig-es2015.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"rootDir": ".",
1717
"sourceMap": true,
18-
"sourceRoot": ".",
18+
"inlineSources": true,
1919
"target": "es2015"
2020
},
2121
"files": [

modules/@angular/common/tsconfig-es5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"rootDir": ".",
1717
"sourceMap": true,
18-
"sourceRoot": ".",
18+
"inlineSources": true,
1919
"target": "es5"
2020
},
2121
"files": [

modules/@angular/compiler/rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
export default {
33
entry: '../../../dist/packages-dist/compiler/esm/index.js',
44
dest: '../../../dist/packages-dist/compiler/esm/compiler.umd.js',
5-
sourceMap: true,
65
format: 'umd',
76
moduleName: 'ng.compiler',
87
globals: {

modules/@angular/compiler/tsconfig-es2015.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"rootDir": ".",
1818
"sourceMap": true,
19-
"sourceRoot": ".",
19+
"inlineSources": true,
2020
"target": "es2015"
2121
},
2222
"files": [

modules/@angular/compiler/tsconfig-es5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"rootDir": ".",
1818
"sourceMap": true,
19-
"sourceRoot": ".",
19+
"inlineSources": true,
2020
"target": "es5"
2121
},
2222
"files": [

modules/@angular/core/rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
export default {
33
entry: '../../../dist/packages-dist/core/esm/index.js',
44
dest: '../../../dist/packages-dist/core/esm/core.umd.js',
5-
sourceMap: true,
65
format: 'umd',
76
moduleName: 'ng.core',
87
globals: {

modules/@angular/core/tsconfig-es2015.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"rootDir": ".",
1717
"sourceMap": true,
18-
"sourceRoot": "",
18+
"inlineSources": true,
1919
"target": "es2015"
2020
},
2121
"files": [

modules/@angular/core/tsconfig-es5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"rootDir": ".",
1717
"sourceMap": true,
18-
"sourceRoot": "",
18+
"inlineSources": true,
1919
"target": "es5"
2020
},
2121
"files": [

modules/@angular/http/rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
export default {
33
entry: '../../../dist/packages-dist/http/esm/index.js',
44
dest: '../../../dist/packages-dist/http/esm/http.umd.js',
5-
sourceMap: true,
65
format: 'umd',
76
moduleName: 'ng.http',
87
globals: {

0 commit comments

Comments
 (0)