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.
This commit is contained in:
parent
38f4c5f155
commit
905f38acb8
|
@ -2,7 +2,6 @@
|
|||
export default {
|
||||
entry: '../../../dist/packages-dist/common/esm/index.js',
|
||||
dest: '../../../dist/packages-dist/common/esm/common.umd.js',
|
||||
sourceMap: true,
|
||||
format: 'umd',
|
||||
moduleName: 'ng.common',
|
||||
globals: {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es2015"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
export default {
|
||||
entry: '../../../dist/packages-dist/compiler/esm/index.js',
|
||||
dest: '../../../dist/packages-dist/compiler/esm/compiler.umd.js',
|
||||
sourceMap: true,
|
||||
format: 'umd',
|
||||
moduleName: 'ng.compiler',
|
||||
globals: {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es2015"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
export default {
|
||||
entry: '../../../dist/packages-dist/core/esm/index.js',
|
||||
dest: '../../../dist/packages-dist/core/esm/core.umd.js',
|
||||
sourceMap: true,
|
||||
format: 'umd',
|
||||
moduleName: 'ng.core',
|
||||
globals: {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": "",
|
||||
"inlineSources": true,
|
||||
"target": "es2015"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": "",
|
||||
"inlineSources": true,
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
export default {
|
||||
entry: '../../../dist/packages-dist/http/esm/index.js',
|
||||
dest: '../../../dist/packages-dist/http/esm/http.umd.js',
|
||||
sourceMap: true,
|
||||
format: 'umd',
|
||||
moduleName: 'ng.http',
|
||||
globals: {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es2015"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
export default {
|
||||
entry: '../../../dist/packages-dist/platform-browser-dynamic/esm/index.js',
|
||||
dest: '../../../dist/packages-dist/platform-browser-dynamic/esm/platform-browser-dynamic.umd.js',
|
||||
sourceMap: true,
|
||||
format: 'umd',
|
||||
moduleName: 'ng.platformBrowserDynamic',
|
||||
globals: {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es2015"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
export default {
|
||||
entry: '../../../dist/packages-dist/platform-browser/esm/index.js',
|
||||
dest: '../../../dist/packages-dist/platform-browser/esm/platform-browser.umd.js',
|
||||
sourceMap: true,
|
||||
format: 'umd',
|
||||
moduleName: 'ng.platformBrowser',
|
||||
globals: {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es2015"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
export default {
|
||||
entry: '../../../dist/packages-dist/platform-server/esm/index.js',
|
||||
dest: '../../../dist/packages-dist/platform-server/esm/platform-server.umd.js',
|
||||
sourceMap: true,
|
||||
format: 'umd',
|
||||
moduleName: 'ng.platformServer',
|
||||
globals: {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es2015"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
export default {
|
||||
entry: '../../../dist/packages-dist/router-deprecated/esm/index.js',
|
||||
dest: '../../../dist/packages-dist/router-deprecated/esm/router-deprecated.umd.js',
|
||||
sourceMap: true,
|
||||
format: 'umd',
|
||||
moduleName: 'ng.router_deprecated',
|
||||
globals: {
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es2015"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
export default {
|
||||
entry: '../../../dist/packages-dist/router/esm/index.js',
|
||||
dest: '../../../dist/packages-dist/router/esm/router.umd.js',
|
||||
sourceMap: true,
|
||||
format: 'umd',
|
||||
moduleName: 'ng.router',
|
||||
globals: {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es2015"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
export default {
|
||||
entry: '../../../dist/packages-dist/upgrade/esm/index.js',
|
||||
dest: '../../../dist/packages-dist/upgrade/esm/upgrade.umd.js',
|
||||
sourceMap: true,
|
||||
format: 'umd',
|
||||
moduleName: 'ng.upgrade',
|
||||
globals: {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es2015"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": ".",
|
||||
"inlineSources": true,
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
|
|
Loading…
Reference in New Issue