aboutsummaryrefslogtreecommitdiff
path: root/integration/snapshots/multiple-var.hmr.js
diff options
context:
space:
mode:
Diffstat (limited to 'integration/snapshots/multiple-var.hmr.js')
-rw-r--r--integration/snapshots/multiple-var.hmr.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/integration/snapshots/multiple-var.hmr.js b/integration/snapshots/multiple-var.hmr.js
index 7b717f25f..c3ca6188f 100644
--- a/integration/snapshots/multiple-var.hmr.js
+++ b/integration/snapshots/multiple-var.hmr.js
@@ -14,14 +14,12 @@ var hmr = new FastHMR(2883558553, "multiple-var.js", FastRefresh), exports = hmr
var foo = true;
globalThis.TRUE_BUT_WE_CANT_TREESHAKE_IT = true;
if (globalThis.TRUE_BUT_WE_CANT_TREESHAKE_IT)
- ({
- foo
- } = {foo: false });
+ ({ foo } = { foo: false });
+ var foo;
function test() {
console.assert(foo === false, "foo should be false");
return testDone(import.meta.url);
}
- var foo;
hmr.exportAll({
test: () => test
});