build: include tslib in umd bundles (#23354)

Fixes #22971

PR Close #23354
This commit is contained in:
Alex Eagle
2018-04-12 17:43:27 -07:00
committed by Igor Minar
parent b76dd3b979
commit 2e270bb96a
3 changed files with 13 additions and 9 deletions

View File

@ -178,8 +178,10 @@ describe('@angular/core ng_package', () => {
.toMatch(/@license Angular v\d+\.\d+\.\d+(?!-PLACEHOLDER)/);
});
it('should have tslib helpers',
() => { expect(shx.cat('bundles/core.umd.js')).not.toContain('undefined.__extends'); });
it('should have tslib helpers', () => {
expect(shx.cat('bundles/core.umd.js')).toContain('function __extends');
expect(shx.cat('bundles/core.umd.js')).not.toContain('undefined.__extends');
});
it('should have an AMD name',
() => { expect(shx.cat('bundles/core.umd.js')).toContain('define(\'@angular/core\''); });
it('should define ng global symbols',