Skip to content

Commit 33bd75d

Browse files
fix: remove unneeded polyfills from the Angular template (#4339)
Merged despite C3 E2E tests failing because they cannot run on a contributor's fork. * fix: remove unneeded polyfills from the Angular template `performance.mark` and `global` polyfills are no longer needed in a v17 application. * fixup! fix: remove unneeded polyfills from the Angular template --------- Co-authored-by: Peter Bacon Darwin <pete@bacondarwin.com>
1 parent 102e15f commit 33bd75d

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.changeset/shiny-worms-prove.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-cloudflare": patch
3+
---
4+
5+
Remove redundant polyfills from the Angular template

packages/create-cloudflare/src/frameworks/angular/templates/tools/alter-polyfills.mjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ for (let index = 0; index < 2; index++) {
2222
}
2323

2424
// Add needed polyfills
25-
serverPolyfillsData.unshift(
26-
`globalThis['process'] = {};`,
27-
`globalThis['global'] = globalThis;`,
28-
// Needed as performance.mark is not a function in worker.
29-
`performance.mark = () => {};`
30-
);
25+
serverPolyfillsData.unshift(`globalThis['process'] = {};`);
3126

3227
fs.writeFileSync(serverPolyfillsFile, serverPolyfillsData.join(EOL));

packages/create-cloudflare/src/frameworks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"dependencies": {
99
"create-astro": "4.4.1",
10-
"@angular/create": "17.0.0-rc.3",
10+
"@angular/create": "17.0.0-rc.4",
1111
"create-docusaurus": "3.0.0",
1212
"create-hono": "0.3.2",
1313
"create-next-app": "13.4.19",

0 commit comments

Comments
 (0)