build: import tslib rather than output TS helpers (#16901)

This commit is contained in:
Jason Aden
2017-05-23 13:01:39 -07:00
committed by Chuck Jazdzewski
parent 1651a8f189
commit fa809ec8cf
44 changed files with 3011 additions and 5898 deletions

View File

@ -8,6 +8,9 @@
"typings": "./platform-webworker-dynamic.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"@angular/common": "0.0.0-PLACEHOLDER",
"@angular/core": "0.0.0-PLACEHOLDER",

View File

@ -6,6 +6,17 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic',
'@angular/platform-webworker': 'ng.platformWebworker',
};
export default {
entry:
'../../dist/packages-dist/platform-webworker-dynamic/@angular/platform-webworker-dynamic.es5.js',
@ -14,12 +25,7 @@ export default {
format: 'umd',
exports: 'named',
moduleName: 'ng.platformWebworkerDynamic',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic',
'@angular/platform-webworker': 'ng.platformWebworker',
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};