Skip to content

Commit a266e1b

Browse files
Broccohansl
authored andcommitted
fix(@schematics/angular): Clear polyfills for universal apps.
Fixes #324
1 parent 62b2016 commit a266e1b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/schematics/angular/universal/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function updateConfigFile(options: UniversalOptions): Rule {
5151
test: options.test,
5252
tsconfig: tsCfg,
5353
testTsconfig: testTsCfg,
54+
polyfills: undefined,
5455
};
5556
if (options.name) {
5657
serverApp.name = options.name;

packages/schematics/angular/universal/index_spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ describe('Universal Schematic', () => {
8989
expect(app.tsconfig).toEqual('tsconfig.server.json');
9090
expect(app.testTsconfig).toEqual('tsconfig.spec.json');
9191
expect(app.environmentSource).toEqual('environments/environment.ts');
92+
expect(app.polyfills).not.toBeDefined();
9293
});
9394

9495
it('should add a server transition to BrowerModule import', () => {

0 commit comments

Comments
 (0)