From 6effdbaea31bbc9a86da18774f28be7e83ce3bff Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 12 Jun 2024 22:09:45 -0700 Subject: [PATCH] fixup! fix(wrangler): avoid path collisions between performance and Performance polyfills --- .changeset/lazy-cycles-pull.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .changeset/lazy-cycles-pull.md diff --git a/.changeset/lazy-cycles-pull.md b/.changeset/lazy-cycles-pull.md new file mode 100644 index 000000000000..bc2070bf4070 --- /dev/null +++ b/.changeset/lazy-cycles-pull.md @@ -0,0 +1,9 @@ +--- +"wrangler": patch +--- + +fix: avoid path collisions between performance and Performance Node.js polyfills + +It turns out that ESBuild paths are case insensitive, which can result in path collisions between polyfills for `globalThis.performance` and `globalThis.Performance`, etc. + +This change ensures that we encode all global names to lowercase and decode them appropriately.