Skip to content

Commit b3cd889

Browse files
committed
fix: polyfills for standalone
1 parent 7c21fca commit b3cd889

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

angular.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@
11151115
"outputPath": "dist/sample-code-flow-standalone",
11161116
"index": "projects/sample-code-flow-standalone/src/index.html",
11171117
"main": "projects/sample-code-flow-standalone/src/main.ts",
1118-
"polyfills": "projects/sample-code-flow-standalone/src/polyfills.ts",
1118+
"polyfills": ["zone.js"],
11191119
"tsConfig": "projects/sample-code-flow-standalone/tsconfig.app.json",
11201120
"aot": true,
11211121
"assets": [
@@ -1187,7 +1187,7 @@
11871187
"builder": "@angular-devkit/build-angular:karma",
11881188
"options": {
11891189
"main": "projects/sample-code-flow-standalone/src/test.ts",
1190-
"polyfills": "projects/sample-code-flow-standalone/src/polyfills.ts",
1190+
"polyfills": ["zone.js", "zone.js/testing"],
11911191
"tsConfig": "projects/sample-code-flow-standalone/tsconfig.spec.json",
11921192
"karmaConfig": "projects/sample-code-flow-standalone/karma.conf.js",
11931193
"assets": ["projects/sample-code-flow-standalone/src/favicon.ico", "projects/sample-code-flow-standalone/src/assets"],

projects/sample-code-flow-standalone/tsconfig.app.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"outDir": "../../out-tsc/app",
66
"types": []
77
},
8-
"files": ["src/main.ts", "src/polyfills.ts"],
8+
"files": ["src/main.ts"],
99
"include": ["src/**/*.d.ts"]
1010
}

projects/sample-code-flow-standalone/tsconfig.spec.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"outDir": "../../out-tsc/spec",
66
"types": ["jasmine", "node"]
77
},
8-
"files": ["src/test.ts", "src/polyfills.ts"],
8+
"files": ["src/test.ts"],
99
"include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
1010
}

0 commit comments

Comments
 (0)