Skip to content

Commit

Permalink
[fix] revert #7668 (#7675)
Browse files Browse the repository at this point in the history
fixes #7673
  • Loading branch information
Rich-Harris authored Nov 16, 2022
1 parent 5d642a1 commit 78e144c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/unlucky-hounds-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Always apply Node polyfills
2 changes: 0 additions & 2 deletions packages/kit/src/exports/node/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ const globals = {
// exported for dev/preview and node environments
export function installPolyfills() {
for (const name in globals) {
if (name in globalThis) continue;

Object.defineProperty(globalThis, name, {
enumerable: true,
configurable: true,
Expand Down

0 comments on commit 78e144c

Please sign in to comment.