From 4f08948e98b2e50fd32a51d13dee00dc215db1a1 Mon Sep 17 00:00:00 2001 From: velzie Date: Sat, 20 Jul 2024 18:40:12 -0400 Subject: [PATCH] misinformation --- src/shared/rewriters/js.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shared/rewriters/js.ts b/src/shared/rewriters/js.ts index b84ca78..010df1a 100644 --- a/src/shared/rewriters/js.ts +++ b/src/shared/rewriters/js.ts @@ -39,8 +39,7 @@ export function rewriteJs(js: string | ArrayBuffer, origin?: URL) { // 1. does not work with modules // 2. cannot proxy import() // 3. disables "use strict" optimizations -// 4. `location = ...` will fail -// 5. i think the global state can get clobbered somehow +// 4. i think the global state can get clobbered somehow // // if you can ensure all the preconditions are met this is faster than full rewrites export function rewriteJsNaiive(js: string | ArrayBuffer, origin?: URL) {