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:
Igor Minar 2016-05-02 20:45:52 -06:00
parent 38f4c5f155
commit 905f38acb8
30 changed files with 20 additions and 30 deletions

View File

@ -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: {

View File

@ -15,7 +15,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es2015"
},
"files": [

View File

@ -15,7 +15,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es5"
},
"files": [

View File

@ -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: {

View File

@ -16,7 +16,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es2015"
},
"files": [

View File

@ -16,7 +16,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es5"
},
"files": [

View File

@ -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: {

View File

@ -15,7 +15,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": "",
"inlineSources": true,
"target": "es2015"
},
"files": [

View File

@ -15,7 +15,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": "",
"inlineSources": true,
"target": "es5"
},
"files": [

View File

@ -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: {

View File

@ -15,7 +15,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es2015"
},
"files": [

View File

@ -15,7 +15,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es5"
},
"files": [

View File

@ -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: {

View File

@ -20,7 +20,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es2015"
},
"files": [

View File

@ -20,7 +20,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es5"
},
"files": [

View File

@ -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: {

View File

@ -21,7 +21,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es2015"
},
"files": [

View File

@ -21,7 +21,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es5"
},
"files": [

View File

@ -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: {

View File

@ -18,7 +18,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es2015"
},
"files": [

View File

@ -18,7 +18,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es5"
},
"files": [

View File

@ -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: {

View File

@ -17,7 +17,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es2015"
},
"files": [

View File

@ -17,7 +17,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es5"
},
"files": [

View File

@ -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: {

View File

@ -18,7 +18,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es2015"
},
"files": [

View File

@ -18,7 +18,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es5"
},
"files": [

View File

@ -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: {

View File

@ -19,7 +19,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es2015"
},
"files": [

View File

@ -19,7 +19,7 @@
},
"rootDir": ".",
"sourceMap": true,
"sourceRoot": ".",
"inlineSources": true,
"target": "es5"
},
"files": [