aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-23 09:03:51 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-25 13:14:23 -0700
commitffde9f7842e6e7dbc9c4120570f0c534b173852e (patch)
treeded965e4193c89e0068dedb4ddfe19e27becb319
parent281950978653cc8eda4f72eee0fe4938039f860f (diff)
downloadbun-ffde9f7842e6e7dbc9c4120570f0c534b173852e.tar.gz
bun-ffde9f7842e6e7dbc9c4120570f0c534b173852e.tar.zst
bun-ffde9f7842e6e7dbc9c4120570f0c534b173852e.zip
:camera:
-rwxr-xr-xtest/scripts/bun.lockbbin15723 -> 19458 bytes
-rw-r--r--test/snapshots/array-args-with-default-values.hmr.debug.js4
-rw-r--r--test/snapshots/bundled-entry-point.debug.js6
-rw-r--r--test/snapshots/bundled-entry-point.hmr.debug.js8
-rw-r--r--test/snapshots/caught-require.debug.js8
-rw-r--r--test/snapshots/caught-require.hmr.debug.js10
-rw-r--r--test/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.debug.js1
-rw-r--r--test/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.debug.js4
-rw-r--r--test/snapshots/code-simplification-neql-define.debug.js2
-rw-r--r--test/snapshots/code-simplification-neql-define.hmr.debug.js6
-rw-r--r--test/snapshots/custom-emotion-jsx/file.debug.jsx10
-rw-r--r--test/snapshots/custom-emotion-jsx/file.hmr.debug.jsx13
-rw-r--r--test/snapshots/export-default-module-hot.hmr.debug.js4
-rw-r--r--test/snapshots/export.debug.js2
-rw-r--r--test/snapshots/export.hmr.debug.js4
-rw-r--r--test/snapshots/forbid-in-is-correct.hmr.debug.js4
-rw-r--r--test/snapshots/global-is-remapped-to-globalThis.hmr.debug.js4
-rw-r--r--test/snapshots/jsx-entities.debug.jsx14
-rw-r--r--test/snapshots/jsx-entities.hmr.debug.jsx17
-rw-r--r--test/snapshots/jsx-spacing.debug.jsx10
-rw-r--r--test/snapshots/jsx-spacing.hmr.debug.jsx13
-rw-r--r--test/snapshots/latin1-chars-in-regexp.hmr.debug.js4
-rw-r--r--test/snapshots/lodash-regexp.debug.js8
-rw-r--r--test/snapshots/lodash-regexp.hmr.debug.js10
-rw-r--r--test/snapshots/multiple-imports.debug.js14
-rw-r--r--test/snapshots/multiple-imports.hmr.debug.js17
-rw-r--r--test/snapshots/multiple-var.hmr.debug.js4
-rw-r--r--test/snapshots/number-literal-bug.hmr.debug.js4
-rw-r--r--test/snapshots/optional-chain-with-function.hmr.debug.js4
-rw-r--r--test/snapshots/package-json-exports/index.debug.js20
-rw-r--r--test/snapshots/package-json-exports/index.hmr.debug.js22
-rw-r--r--test/snapshots/package-json-utf8.debug.js2
-rw-r--r--test/snapshots/package-json-utf8.hmr.debug.js4
-rw-r--r--test/snapshots/react-context-value-func.debug.tsx10
-rw-r--r--test/snapshots/react-context-value-func.hmr.debug.tsx13
-rw-r--r--test/snapshots/spread_with_key.debug.tsx13
-rw-r--r--test/snapshots/spread_with_key.hmr.debug.tsx15
-rw-r--r--test/snapshots/string-escapes.debug.js9
-rw-r--r--test/snapshots/string-escapes.hmr.debug.js12
-rw-r--r--test/snapshots/styledcomponents-output.debug.js18
-rw-r--r--test/snapshots/styledcomponents-output.hmr.debug.js21
-rw-r--r--test/snapshots/template-literal.hmr.debug.js4
-rw-r--r--test/snapshots/ts-fallback-rewrite-works.hmr.debug.js4
-rw-r--r--test/snapshots/tsx-fallback-rewrite-works.hmr.debug.js4
-rw-r--r--test/snapshots/type-only-imports.hmr.debug.ts4
-rw-r--r--test/snapshots/unicode-identifiers.hmr.debug.js4
-rw-r--r--test/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js4
47 files changed, 150 insertions, 242 deletions
diff --git a/test/scripts/bun.lockb b/test/scripts/bun.lockb
index 4d944995a..992cad73b 100755
--- a/test/scripts/bun.lockb
+++ b/test/scripts/bun.lockb
Binary files differ
diff --git a/test/snapshots/array-args-with-default-values.hmr.debug.js b/test/snapshots/array-args-with-default-values.hmr.debug.js
index e219cbd9a..6d1da09d1 100644
--- a/test/snapshots/array-args-with-default-values.hmr.debug.js
+++ b/test/snapshots/array-args-with-default-values.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(3474597122, "array-args-with-default-values.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(326432150, "array-args-with-default-values.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
var lines;
const data = () => lines.map(([a = null, b = null, c = null, d = null]) => ({
diff --git a/test/snapshots/bundled-entry-point.debug.js b/test/snapshots/bundled-entry-point.debug.js
index 51562933f..12722a5c1 100644
--- a/test/snapshots/bundled-entry-point.debug.js
+++ b/test/snapshots/bundled-entry-point.debug.js
@@ -1,11 +1,9 @@
import {
-__require as require
+__require
} from "http://localhost:8080/bun:wrap";
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
export function test() {
return testDone(import.meta.url);
-
}
-
//# sourceMappingURL=http://localhost:8080/bundled-entry-point.js.map
diff --git a/test/snapshots/bundled-entry-point.hmr.debug.js b/test/snapshots/bundled-entry-point.hmr.debug.js
index 622b6b75b..b954e8868 100644
--- a/test/snapshots/bundled-entry-point.hmr.debug.js
+++ b/test/snapshots/bundled-entry-point.hmr.debug.js
@@ -1,20 +1,18 @@
import {
-__require as require
+__require
} from "http://localhost:8080/bun:wrap";
import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var hmr = new FastHMR(3012834585, "bundled-entry-point.js", FastRefresh), exports = hmr.exports;
-
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var hmr = new FastHMR(173057717, "bundled-entry-point.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
function test() {
return testDone(import.meta.url);
diff --git a/test/snapshots/caught-require.debug.js b/test/snapshots/caught-require.debug.js
index 73608f8e3..7c356a21d 100644
--- a/test/snapshots/caught-require.debug.js
+++ b/test/snapshots/caught-require.debug.js
@@ -1,12 +1,12 @@
import {
__require as require
} from "http://localhost:8080/bun:wrap";
+var this_package_should_not_exist_f335_0 = (() => ({}));
+var this_package_should_not_exist_f335_1 = (() => ({}));
try {
- require((() => { throw (new Error(`Cannot require module '"this-package-should-not-exist"'`)); } )());
-
+ require((() => { throw (new Error(`Cannot require module "this-package-should-not-exist"`)); } )());
} catch (exception) {
}
-
try {
await import("this-package-should-not-exist");
} catch (exception) {
@@ -16,7 +16,7 @@ import("this-package-should-not-exist").then(() => {
});
export async function test() {
try {
- require((() => { throw (new Error(`Cannot require module '"this-package-should-not-exist"'`)); } )());
+ require((() => { throw (new Error(`Cannot require module "this-package-should-not-exist"`)); } )());
} catch (exception) {
}
try {
diff --git a/test/snapshots/caught-require.hmr.debug.js b/test/snapshots/caught-require.hmr.debug.js
index 5beecb99b..f2a75dbe1 100644
--- a/test/snapshots/caught-require.hmr.debug.js
+++ b/test/snapshots/caught-require.hmr.debug.js
@@ -2,7 +2,6 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__require as require
} from "http://localhost:8080/bun:wrap";
@@ -12,11 +11,12 @@ __FastRefreshModule as FastHMR
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(2398506918, "caught-require.js", FastRefresh), exports = hmr.exports;
-
+var this_package_should_not_exist_f335_0 = (() => ({}));
+var this_package_should_not_exist_f335_1 = (() => ({}));
+var hmr = new FastHMR(3165260286, "caught-require.js", FastRefresh), exports = hmr.exports;
await (hmr._load = async function() {
try {
- require((() => { throw (new Error(`Cannot require module '"this-package-should-not-exist"'`)); } )());
+ require((() => { throw (new Error(`Cannot require module "this-package-should-not-exist"`)); } )());
} catch (exception) {
}
try {
@@ -28,7 +28,7 @@ await (hmr._load = async function() {
});
async function test() {
try {
- require((() => { throw (new Error(`Cannot require module '"this-package-should-not-exist"'`)); } )());
+ require((() => { throw (new Error(`Cannot require module "this-package-should-not-exist"`)); } )());
} catch (exception) {
}
try {
diff --git a/test/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.debug.js b/test/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.debug.js
index 1bd6883d8..77e4fc695 100644
--- a/test/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.debug.js
+++ b/test/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.debug.js
@@ -5,7 +5,6 @@ import * as _loginReally2 from "http://localhost:8080/_login.js";
import * as _authReally from "http://localhost:8080/_auth.js";
export { _login as login };
-
export function test() {
return testDone(import.meta.url);
}
diff --git a/test/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.debug.js b/test/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.debug.js
index f685557dc..b862421e6 100644
--- a/test/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.debug.js
+++ b/test/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.debug.js
@@ -2,7 +2,6 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
@@ -14,8 +13,7 @@ import _auth from "http://localhost:8080/_auth.js";
import * as _loginReally from "http://localhost:8080/_login.js";
import * as _loginReally2 from "http://localhost:8080/_login.js";
import * as _authReally from "http://localhost:8080/_auth.js";
-var hmr = new FastHMR(3878252498, "cjs-transform-shouldnt-have-static-imports-in-cjs-function.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(1284442761, "cjs-transform-shouldnt-have-static-imports-in-cjs-function.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
function test() {
return testDone(import.meta.url);
diff --git a/test/snapshots/code-simplification-neql-define.debug.js b/test/snapshots/code-simplification-neql-define.debug.js
index 6c0e684df..bf526597c 100644
--- a/test/snapshots/code-simplification-neql-define.debug.js
+++ b/test/snapshots/code-simplification-neql-define.debug.js
@@ -11,7 +11,7 @@ export var $f332019d = $$m({
var RelayQueryResponseCache = function() {
var foo = function RelayQueryResponseCache(_ref) {
var size = _ref.size, ttl = _ref.ttl;
- !(size > 0) && invariant(false, "RelayQueryResponseCache: Expected the max cache size to be > 0, got " + "`%s`.", size);
+ !(size > 0) && invariant(false, "RelayQueryResponseCache: Expected the max cache size to be > 0, got `%s`.", size);
!(ttl > 0) && invariant(false, "RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.", ttl);
};
foo({ size: 100, ttl: 3600 });
diff --git a/test/snapshots/code-simplification-neql-define.hmr.debug.js b/test/snapshots/code-simplification-neql-define.hmr.debug.js
index 8d4f82052..663c43e3a 100644
--- a/test/snapshots/code-simplification-neql-define.hmr.debug.js
+++ b/test/snapshots/code-simplification-neql-define.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(726376257, "code-simplification-neql-define.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(373889696, "code-simplification-neql-define.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
var testFailed = false;
const invariant = () => {
@@ -25,7 +23,7 @@ var hmr = new FastHMR(726376257, "code-simplification-neql-define.js", FastRefre
var RelayQueryResponseCache = function() {
var foo = function RelayQueryResponseCache(_ref) {
var size = _ref.size, ttl = _ref.ttl;
- !(size > 0) && invariant(false, "RelayQueryResponseCache: Expected the max cache size to be > 0, got " + "`%s`.", size);
+ !(size > 0) && invariant(false, "RelayQueryResponseCache: Expected the max cache size to be > 0, got `%s`.", size);
!(ttl > 0) && invariant(false, "RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.", ttl);
};
foo({ size: 100, ttl: 3600 });
diff --git a/test/snapshots/custom-emotion-jsx/file.debug.jsx b/test/snapshots/custom-emotion-jsx/file.debug.jsx
index 466cd4697..48cb6b175 100644
--- a/test/snapshots/custom-emotion-jsx/file.debug.jsx
+++ b/test/snapshots/custom-emotion-jsx/file.debug.jsx
@@ -1,16 +1,14 @@
import {
__require as require
} from "http://localhost:8080/bun:wrap";
-import * as $72625799 from "http://localhost:8080/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js";
-var JSX = require($72625799);
+import * as $f1431544 from "http://localhost:8080/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js";
+var JSX = require($f1431544);
var jsx = require(JSX).jsxDEV;
-
-import * as $5b3cea55 from "http://localhost:8080/node_modules/react-dom/index.js";
-var ReactDOM = require($5b3cea55);
+import * as $12d4369 from "http://localhost:8080/node_modules/react-dom/index.js";
+var ReactDOM = require($12d4369);
export const Foo = () => jsx("div", {
css: { content: '"it worked!"' }
}, undefined, false, undefined, this);
-
export function test() {
const element = document.createElement("div");
element.id = "custom-emotion-jsx";
diff --git a/test/snapshots/custom-emotion-jsx/file.hmr.debug.jsx b/test/snapshots/custom-emotion-jsx/file.hmr.debug.jsx
index a046f2e1c..981ec4be8 100644
--- a/test/snapshots/custom-emotion-jsx/file.hmr.debug.jsx
+++ b/test/snapshots/custom-emotion-jsx/file.hmr.debug.jsx
@@ -5,21 +5,18 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__require as require
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
-import * as $72625799 from "http://localhost:8080/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js";
-var JSX = require($72625799);
+import * as $f1431544 from "http://localhost:8080/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js";
+var JSX = require($f1431544);
var jsx = require(JSX).jsxDEV;
-
-import * as $5b3cea55 from "http://localhost:8080/node_modules/react-dom/index.js";
-var ReactDOM = require($5b3cea55);
-var hmr = new FastHMR(2497996991, "custom-emotion-jsx/file.jsx", FastRefresh), exports = hmr.exports;
-
+import * as $12d4369 from "http://localhost:8080/node_modules/react-dom/index.js";
+var ReactDOM = require($12d4369);
+var hmr = new FastHMR(3560219886, "custom-emotion-jsx/file.jsx", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
var Foo = () => jsx("div", {
css: { content: '"it worked!"' }
diff --git a/test/snapshots/export-default-module-hot.hmr.debug.js b/test/snapshots/export-default-module-hot.hmr.debug.js
index 6230c29a1..7b308aa21 100644
--- a/test/snapshots/export-default-module-hot.hmr.debug.js
+++ b/test/snapshots/export-default-module-hot.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(2909748314, "export-default-module-hot.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(2073254346, "export-default-module-hot.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
var export_default_module_hot_default = typeof module !== "undefined" && module.id;
function test() {
diff --git a/test/snapshots/export.debug.js b/test/snapshots/export.debug.js
index 986d3b45f..84fe5b8e9 100644
--- a/test/snapshots/export.debug.js
+++ b/test/snapshots/export.debug.js
@@ -1,6 +1,5 @@
import what from "http://localhost:8080/_auth.js";
export { default as auth } from "http://localhost:8080/_auth.js";
-
export { default as login } from "http://localhost:8080/_login.js";
export * from "http://localhost:8080/_bacon.js";
export let yoyoyo = "yoyoyo";
@@ -18,7 +17,6 @@ export { } from "http://localhost:8080/_bacon.js";
import * as where from "http://localhost:8080/_auth.js";
export { where };
-
export { bar as booop };
export function test() {
hey();
diff --git a/test/snapshots/export.hmr.debug.js b/test/snapshots/export.hmr.debug.js
index 4bcc6ef59..dbe3fae5d 100644
--- a/test/snapshots/export.hmr.debug.js
+++ b/test/snapshots/export.hmr.debug.js
@@ -2,7 +2,6 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
@@ -11,8 +10,7 @@ __FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
import what from "http://localhost:8080/_auth.js";
import * as where from "http://localhost:8080/_auth.js";
-var hmr = new FastHMR(1879780259, "export.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(1805832743, "export.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
var yoyoyo = "yoyoyo";
function hey() {
diff --git a/test/snapshots/forbid-in-is-correct.hmr.debug.js b/test/snapshots/forbid-in-is-correct.hmr.debug.js
index 83a447fc4..d41d6ba76 100644
--- a/test/snapshots/forbid-in-is-correct.hmr.debug.js
+++ b/test/snapshots/forbid-in-is-correct.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(346837007, "forbid-in-is-correct.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(483885974, "forbid-in-is-correct.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
var foo = () => {
var D = (i, r) => () => (r || i((r = { exports: {} }).exports, r), r.exports);
diff --git a/test/snapshots/global-is-remapped-to-globalThis.hmr.debug.js b/test/snapshots/global-is-remapped-to-globalThis.hmr.debug.js
index 1f6619161..83e45c0c5 100644
--- a/test/snapshots/global-is-remapped-to-globalThis.hmr.debug.js
+++ b/test/snapshots/global-is-remapped-to-globalThis.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(713665787, "global-is-remapped-to-globalThis.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(614040514, "global-is-remapped-to-globalThis.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
function test() {
console.assert(globalThis === globalThis);
diff --git a/test/snapshots/jsx-entities.debug.jsx b/test/snapshots/jsx-entities.debug.jsx
index 9fd075bc6..7fd4f1eac 100644
--- a/test/snapshots/jsx-entities.debug.jsx
+++ b/test/snapshots/jsx-entities.debug.jsx
@@ -1,14 +1,13 @@
import {
__require as require
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var JSXClassic = require($bbcd215f);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var JSXClassic = require($a66742df);
var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment;
-
-import * as $1f6f0e67 from "http://localhost:8080/node_modules/react-dom/server.browser.js";
-var ReactDOM = require($1f6f0e67);
+import * as $66da6d1a from "http://localhost:8080/node_modules/react-dom/server.browser.js";
+var ReactDOM = require($66da6d1a);
const elements = {
[ReactDOM.renderToString(jsx(JSXFrag, {
children: '"'
@@ -2751,7 +2750,6 @@ const elements = {
children: "\u0294"
}, undefined, false, undefined, this))]: 660
};
-
export function test() {
for (let rawKey in elements) {
var key = rawKey;
diff --git a/test/snapshots/jsx-entities.hmr.debug.jsx b/test/snapshots/jsx-entities.hmr.debug.jsx
index 07915e50a..289d03d2e 100644
--- a/test/snapshots/jsx-entities.hmr.debug.jsx
+++ b/test/snapshots/jsx-entities.hmr.debug.jsx
@@ -5,23 +5,20 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__require as require
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var JSXClassic = require($bbcd215f);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var JSXClassic = require($a66742df);
var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment;
-
-import * as $1f6f0e67 from "http://localhost:8080/node_modules/react-dom/server.browser.js";
-var ReactDOM = require($1f6f0e67);
-var hmr = new FastHMR(817082122, "jsx-entities.jsx", FastRefresh), exports = hmr.exports;
-
+import * as $66da6d1a from "http://localhost:8080/node_modules/react-dom/server.browser.js";
+var ReactDOM = require($66da6d1a);
+var hmr = new FastHMR(3960480319, "jsx-entities.jsx", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
const elements = {
[ReactDOM.renderToString(jsx(JSXFrag, {
diff --git a/test/snapshots/jsx-spacing.debug.jsx b/test/snapshots/jsx-spacing.debug.jsx
index bfbcab92f..477e56fc5 100644
--- a/test/snapshots/jsx-spacing.debug.jsx
+++ b/test/snapshots/jsx-spacing.debug.jsx
@@ -1,14 +1,12 @@
import {
__require as require
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
var jsx = require(JSX).jsxDEV;
-
-import * as $1f6f0e67 from "http://localhost:8080/node_modules/react-dom/server.browser.js";
-var ReactDOM = require($1f6f0e67);
+import * as $66da6d1a from "http://localhost:8080/node_modules/react-dom/server.browser.js";
+var ReactDOM = require($66da6d1a);
const ReturnDescriptionAsString = ({ description }) => description;
-
export function test() {
const _bun = ReactDOM.renderToString(jsx(ReturnDescriptionAsString, {
description: `line1
diff --git a/test/snapshots/jsx-spacing.hmr.debug.jsx b/test/snapshots/jsx-spacing.hmr.debug.jsx
index d9ec4e204..197395eb9 100644
--- a/test/snapshots/jsx-spacing.hmr.debug.jsx
+++ b/test/snapshots/jsx-spacing.hmr.debug.jsx
@@ -5,21 +5,18 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__require as require
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
var jsx = require(JSX).jsxDEV;
-
-import * as $1f6f0e67 from "http://localhost:8080/node_modules/react-dom/server.browser.js";
-var ReactDOM = require($1f6f0e67);
-var hmr = new FastHMR(3614189736, "jsx-spacing.jsx", FastRefresh), exports = hmr.exports;
-
+import * as $66da6d1a from "http://localhost:8080/node_modules/react-dom/server.browser.js";
+var ReactDOM = require($66da6d1a);
+var hmr = new FastHMR(4107634022, "jsx-spacing.jsx", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
const ReturnDescriptionAsString = ({ description }) => description;
function test() {
diff --git a/test/snapshots/latin1-chars-in-regexp.hmr.debug.js b/test/snapshots/latin1-chars-in-regexp.hmr.debug.js
index fee5714a2..f6de90be6 100644
--- a/test/snapshots/latin1-chars-in-regexp.hmr.debug.js
+++ b/test/snapshots/latin1-chars-in-regexp.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(1430071586, "latin1-chars-in-regexp.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(3390984578, "latin1-chars-in-regexp.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
var re_btou = new RegExp([
diff --git a/test/snapshots/lodash-regexp.debug.js b/test/snapshots/lodash-regexp.debug.js
index b1566fb6d..fa168dcae 100644
--- a/test/snapshots/lodash-regexp.debug.js
+++ b/test/snapshots/lodash-regexp.debug.js
@@ -1,11 +1,10 @@
import {
-__require as require
+__require
} from "http://localhost:8080/bun:wrap";
-import * as $60f52dc2 from "http://localhost:8080/node_modules/lodash/lodash.js";
-var { shuffle} = require($60f52dc2);
+import * as $75175720 from "http://localhost:8080/node_modules/lodash/lodash.js";
+var { shuffle} = __require($75175720);
export function test() {
const foo = [1, 2, 3, 4, 6];
-
const bar = shuffle(foo);
console.assert(bar !== foo);
console.assert(bar.length === foo.length);
@@ -19,5 +18,4 @@ export function test() {
return testDone(import.meta.url);
}
-
//# sourceMappingURL=http://localhost:8080/lodash-regexp.js.map
diff --git a/test/snapshots/lodash-regexp.hmr.debug.js b/test/snapshots/lodash-regexp.hmr.debug.js
index 959e9e9c1..83469a1eb 100644
--- a/test/snapshots/lodash-regexp.hmr.debug.js
+++ b/test/snapshots/lodash-regexp.hmr.debug.js
@@ -1,21 +1,19 @@
import {
-__require as require
+__require
} from "http://localhost:8080/bun:wrap";
import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-import * as $60f52dc2 from "http://localhost:8080/node_modules/lodash/lodash.js";
-var { shuffle} = require($60f52dc2);
-var hmr = new FastHMR(2158065009, "lodash-regexp.js", FastRefresh), exports = hmr.exports;
-
+import * as $75175720 from "http://localhost:8080/node_modules/lodash/lodash.js";
+var { shuffle} = __require($75175720);
+var hmr = new FastHMR(2675673186, "lodash-regexp.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
function test() {
const foo = [1, 2, 3, 4, 6];
diff --git a/test/snapshots/multiple-imports.debug.js b/test/snapshots/multiple-imports.debug.js
index af9396b46..ce4e25988 100644
--- a/test/snapshots/multiple-imports.debug.js
+++ b/test/snapshots/multiple-imports.debug.js
@@ -1,16 +1,14 @@
import {
__require as require
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var JSXClassic = require($bbcd215f);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var JSXClassic = require($a66742df);
var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment;
-
-var { default: React} = require($bbcd215f);
-var { default: React2} = require($bbcd215f);
+var { default: React} = require($a66742df);
+var { default: React2} = require($a66742df);
const bacon = React;
-
const bacon2 = jsx(JSXFrag, {
children: "hello"
}, undefined, false, undefined, this);
diff --git a/test/snapshots/multiple-imports.hmr.debug.js b/test/snapshots/multiple-imports.hmr.debug.js
index 5cca375b2..ac4e34cce 100644
--- a/test/snapshots/multiple-imports.hmr.debug.js
+++ b/test/snapshots/multiple-imports.hmr.debug.js
@@ -5,23 +5,20 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__require as require
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var JSXClassic = require($bbcd215f);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var JSXClassic = require($a66742df);
var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment;
-
-var { default: React} = require($bbcd215f);
-var { default: React2} = require($bbcd215f);
-var hmr = new FastHMR(2165509932, "multiple-imports.js", FastRefresh), exports = hmr.exports;
-
+var { default: React} = require($a66742df);
+var { default: React2} = require($a66742df);
+var hmr = new FastHMR(2469023238, "multiple-imports.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
const bacon = React;
const bacon2 = jsx(JSXFrag, {
diff --git a/test/snapshots/multiple-var.hmr.debug.js b/test/snapshots/multiple-var.hmr.debug.js
index a5298f462..d24b4d243 100644
--- a/test/snapshots/multiple-var.hmr.debug.js
+++ b/test/snapshots/multiple-var.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(2883558553, "multiple-var.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(1943563621, "multiple-var.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
var foo = true;
globalThis.TRUE_BUT_WE_CANT_TREESHAKE_IT = true;
diff --git a/test/snapshots/number-literal-bug.hmr.debug.js b/test/snapshots/number-literal-bug.hmr.debug.js
index 852aef372..7f06df649 100644
--- a/test/snapshots/number-literal-bug.hmr.debug.js
+++ b/test/snapshots/number-literal-bug.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(583570002, "number-literal-bug.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(472725871, "number-literal-bug.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
function test() {
const precision = 10;
diff --git a/test/snapshots/optional-chain-with-function.hmr.debug.js b/test/snapshots/optional-chain-with-function.hmr.debug.js
index e7f97cb3f..4ad140c1e 100644
--- a/test/snapshots/optional-chain-with-function.hmr.debug.js
+++ b/test/snapshots/optional-chain-with-function.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(3608848620, "optional-chain-with-function.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(2145684817, "optional-chain-with-function.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
function test() {
try {
diff --git a/test/snapshots/package-json-exports/index.debug.js b/test/snapshots/package-json-exports/index.debug.js
index 3d41a7985..8ed8f1376 100644
--- a/test/snapshots/package-json-exports/index.debug.js
+++ b/test/snapshots/package-json-exports/index.debug.js
@@ -1,22 +1,20 @@
import {
-__require as require
+__require
} from "http://localhost:8080/bun:wrap";
-import * as $4068f25b from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/index.js";
-var InexactRoot = require($4068f25b);
-import * as $d2a171d2 from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/dir/file.js";
-var InexactFile = require($d2a171d2);
-import * as $522c6d1f from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/foo.js";
-var ExactFile = require($522c6d1f);
-import * as $fce83cd7 from "http://localhost:8080/package-json-exports/node_modules/js-only-exports/browser/js-file.js";
-var JSFileExtensionOnly = require($fce83cd7);
+import * as $a4de9925 from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/index.js";
+var InexactRoot = __require($a4de9925);
+import * as $725c641 from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/dir/file.js";
+var InexactFile = __require($725c641);
+import * as $fbe61cb7 from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/foo.js";
+var ExactFile = __require($fbe61cb7);
+import * as $6a256e60 from "http://localhost:8080/package-json-exports/node_modules/js-only-exports/browser/js-file.js";
+var JSFileExtensionOnly = __require($6a256e60);
export async function test() {
console.assert(InexactRoot.target === "browser");
-
console.assert(InexactFile.target === "browser");
console.assert(ExactFile.target === "browser");
console.assert(JSFileExtensionOnly.isJS === true);
return testDone(import.meta.url);
}
-
//# sourceMappingURL=http://localhost:8080/package-json-exports/index.js.map
diff --git a/test/snapshots/package-json-exports/index.hmr.debug.js b/test/snapshots/package-json-exports/index.hmr.debug.js
index e6cdaefba..0a2b50e86 100644
--- a/test/snapshots/package-json-exports/index.hmr.debug.js
+++ b/test/snapshots/package-json-exports/index.hmr.debug.js
@@ -1,27 +1,25 @@
import {
-__require as require
+__require
} from "http://localhost:8080/bun:wrap";
import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-import * as $4068f25b from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/index.js";
-var InexactRoot = require($4068f25b);
-import * as $d2a171d2 from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/dir/file.js";
-var InexactFile = require($d2a171d2);
-import * as $522c6d1f from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/foo.js";
-var ExactFile = require($522c6d1f);
-import * as $fce83cd7 from "http://localhost:8080/package-json-exports/node_modules/js-only-exports/browser/js-file.js";
-var JSFileExtensionOnly = require($fce83cd7);
-var hmr = new FastHMR(1953708113, "package-json-exports/index.js", FastRefresh), exports = hmr.exports;
-
+import * as $a4de9925 from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/index.js";
+var InexactRoot = __require($a4de9925);
+import * as $725c641 from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/dir/file.js";
+var InexactFile = __require($725c641);
+import * as $fbe61cb7 from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/foo.js";
+var ExactFile = __require($fbe61cb7);
+import * as $6a256e60 from "http://localhost:8080/package-json-exports/node_modules/js-only-exports/browser/js-file.js";
+var JSFileExtensionOnly = __require($6a256e60);
+var hmr = new FastHMR(879772149, "package-json-exports/index.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
async function test() {
console.assert(InexactRoot.target === "browser");
diff --git a/test/snapshots/package-json-utf8.debug.js b/test/snapshots/package-json-utf8.debug.js
index 8845090f0..b08c3804d 100644
--- a/test/snapshots/package-json-utf8.debug.js
+++ b/test/snapshots/package-json-utf8.debug.js
@@ -1,9 +1,7 @@
import pkg from "http://localhost:8080/utf8-package-json.json";
export function test() {
console.assert(!!pkg.author);
-
return testDone(import.meta.url);
}
-
//# sourceMappingURL=http://localhost:8080/package-json-utf8.js.map
diff --git a/test/snapshots/package-json-utf8.hmr.debug.js b/test/snapshots/package-json-utf8.hmr.debug.js
index fe11070c2..079e9bb13 100644
--- a/test/snapshots/package-json-utf8.hmr.debug.js
+++ b/test/snapshots/package-json-utf8.hmr.debug.js
@@ -2,7 +2,6 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
@@ -10,8 +9,7 @@ import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
import pkg from "http://localhost:8080/utf8-package-json.json";
-var hmr = new FastHMR(4111115104, "package-json-utf8.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(3383656110, "package-json-utf8.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
function test() {
console.assert(!!pkg.author);
diff --git a/test/snapshots/react-context-value-func.debug.tsx b/test/snapshots/react-context-value-func.debug.tsx
index 71b5e5f60..6ebe7c0ce 100644
--- a/test/snapshots/react-context-value-func.debug.tsx
+++ b/test/snapshots/react-context-value-func.debug.tsx
@@ -1,14 +1,12 @@
import {
__require as require
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
var jsx = require(JSX).jsxDEV;
-
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var { default: React} = require($bbcd215f);
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var { default: React} = require($a66742df);
const Context = React.createContext({});
-
const ContextProvider = ({ children }) => {
const [cb, setCB] = React.useState(function() {
});
diff --git a/test/snapshots/react-context-value-func.hmr.debug.tsx b/test/snapshots/react-context-value-func.hmr.debug.tsx
index d17a8fa88..2a8833251 100644
--- a/test/snapshots/react-context-value-func.hmr.debug.tsx
+++ b/test/snapshots/react-context-value-func.hmr.debug.tsx
@@ -5,21 +5,18 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__require as require
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
var jsx = require(JSX).jsxDEV;
-
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var { default: React} = require($bbcd215f);
-var hmr = new FastHMR(3514348331, "react-context-value-func.tsx", FastRefresh), exports = hmr.exports;
-
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var { default: React} = require($a66742df);
+var hmr = new FastHMR(4175696745, "react-context-value-func.tsx", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
const Context = React.createContext({});
const ContextProvider = ({ children }) => {
diff --git a/test/snapshots/spread_with_key.debug.tsx b/test/snapshots/spread_with_key.debug.tsx
index e096a76c8..23ca37805 100644
--- a/test/snapshots/spread_with_key.debug.tsx
+++ b/test/snapshots/spread_with_key.debug.tsx
@@ -1,16 +1,14 @@
import {
__require as require
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var JSXClassic = require($bbcd215f);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var JSXClassic = require($a66742df);
var jsx = require(JSX).jsxDEV, jsxEl = require(JSXClassic).createElement;
-
-var { default: React} = require($bbcd215f);
+var { default: React} = require($a66742df);
export function SpreadWithTheKey({ className }) {
const rest = {};
-
return jsxEl("div", {
className,
...rest,
@@ -18,7 +16,6 @@ export function SpreadWithTheKey({ className }) {
key: "spread-with-the-key"
}, "Rendered component containing warning");
}
-
export function test() {
console.assert(React.isValidElement(jsx(SpreadWithTheKey, {
className: "foo"
diff --git a/test/snapshots/spread_with_key.hmr.debug.tsx b/test/snapshots/spread_with_key.hmr.debug.tsx
index 0123867ee..0799ffcf2 100644
--- a/test/snapshots/spread_with_key.hmr.debug.tsx
+++ b/test/snapshots/spread_with_key.hmr.debug.tsx
@@ -5,22 +5,19 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__require as require
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var JSXClassic = require($bbcd215f);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var JSXClassic = require($a66742df);
var jsx = require(JSX).jsxDEV, jsxEl = require(JSXClassic).createElement;
-
-var { default: React} = require($bbcd215f);
-var hmr = new FastHMR(2717584935, "spread_with_key.tsx", FastRefresh), exports = hmr.exports;
-
+var { default: React} = require($a66742df);
+var hmr = new FastHMR(1094129250, "spread_with_key.tsx", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
function SpreadWithTheKey({ className }) {
const rest = {};
diff --git a/test/snapshots/string-escapes.debug.js b/test/snapshots/string-escapes.debug.js
index 9084bc362..4ac8de635 100644
--- a/test/snapshots/string-escapes.debug.js
+++ b/test/snapshots/string-escapes.debug.js
@@ -1,12 +1,11 @@
import {
__require as require
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var JSXClassic = require($bbcd215f);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var JSXClassic = require($a66742df);
var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment;
-
var tab = "\t";
var f = "";
var f = "\u2087";
diff --git a/test/snapshots/string-escapes.hmr.debug.js b/test/snapshots/string-escapes.hmr.debug.js
index a247fc16d..4ec50b9e0 100644
--- a/test/snapshots/string-escapes.hmr.debug.js
+++ b/test/snapshots/string-escapes.hmr.debug.js
@@ -5,20 +5,18 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__require as require
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var JSXClassic = require($bbcd215f);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var JSXClassic = require($a66742df);
var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment;
-
-var hmr = new FastHMR(2482749838, "string-escapes.js", FastRefresh), exports = hmr.exports;
+var hmr = new FastHMR(734981694, "string-escapes.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
var tab = "\t";
var f = "";
diff --git a/test/snapshots/styledcomponents-output.debug.js b/test/snapshots/styledcomponents-output.debug.js
index f3a59d365..bf517375f 100644
--- a/test/snapshots/styledcomponents-output.debug.js
+++ b/test/snapshots/styledcomponents-output.debug.js
@@ -1,16 +1,15 @@
import {
__require as require
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
var jsx = require(JSX).jsxDEV;
-
-import * as $d4051a2e from "http://localhost:8080/node_modules/styled-components/dist/styled-components.browser.esm.js";
-var { default: styled} = require($d4051a2e);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var { default: React} = require($bbcd215f);
-import * as $5b3cea55 from "http://localhost:8080/node_modules/react-dom/index.js";
-var { default: ReactDOM} = require($5b3cea55);
+import * as $11bd281d from "http://localhost:8080/node_modules/styled-components/dist/styled-components.browser.esm.js";
+var { default: styled} = require($11bd281d);
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var { default: React} = require($a66742df);
+import * as $12d4369 from "http://localhost:8080/node_modules/react-dom/index.js";
+var { default: ReactDOM} = require($12d4369);
const ErrorScreenRoot = styled.div`
font-family: "Muli", -apple-system, BlinkMacSystemFont, Helvetica, Arial,
sans-serif;
@@ -39,7 +38,6 @@ const ErrorScreenRoot = styled.div`
color: inherit;
}
`;
-
export function test() {
if (typeof window !== "undefined") {
const reactEl = document.createElement("div");
diff --git a/test/snapshots/styledcomponents-output.hmr.debug.js b/test/snapshots/styledcomponents-output.hmr.debug.js
index 027d5f35b..8f7fec3b5 100644
--- a/test/snapshots/styledcomponents-output.hmr.debug.js
+++ b/test/snapshots/styledcomponents-output.hmr.debug.js
@@ -5,25 +5,22 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__require as require
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
-var JSX = require($2f488e5b);
+import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($a77976b9);
var jsx = require(JSX).jsxDEV;
-
-import * as $d4051a2e from "http://localhost:8080/node_modules/styled-components/dist/styled-components.browser.esm.js";
-var { default: styled} = require($d4051a2e);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-var { default: React} = require($bbcd215f);
-import * as $5b3cea55 from "http://localhost:8080/node_modules/react-dom/index.js";
-var { default: ReactDOM} = require($5b3cea55);
-var hmr = new FastHMR(1290604342, "styledcomponents-output.js", FastRefresh), exports = hmr.exports;
-
+import * as $11bd281d from "http://localhost:8080/node_modules/styled-components/dist/styled-components.browser.esm.js";
+var { default: styled} = require($11bd281d);
+import * as $a66742df from "http://localhost:8080/node_modules/react/index.js";
+var { default: React} = require($a66742df);
+import * as $12d4369 from "http://localhost:8080/node_modules/react-dom/index.js";
+var { default: ReactDOM} = require($12d4369);
+var hmr = new FastHMR(2532152522, "styledcomponents-output.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
const ErrorScreenRoot = styled.div`
font-family: "Muli", -apple-system, BlinkMacSystemFont, Helvetica, Arial,
diff --git a/test/snapshots/template-literal.hmr.debug.js b/test/snapshots/template-literal.hmr.debug.js
index b5a8ac52b..4ec28577e 100644
--- a/test/snapshots/template-literal.hmr.debug.js
+++ b/test/snapshots/template-literal.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(2201713056, "template-literal.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(3538874239, "template-literal.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
const css = (templ) => templ.toString();
const fooNoBracesUTF8 = css`
diff --git a/test/snapshots/ts-fallback-rewrite-works.hmr.debug.js b/test/snapshots/ts-fallback-rewrite-works.hmr.debug.js
index 1d59ba0d5..e03223547 100644
--- a/test/snapshots/ts-fallback-rewrite-works.hmr.debug.js
+++ b/test/snapshots/ts-fallback-rewrite-works.hmr.debug.js
@@ -2,12 +2,10 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__HMRModule as HMR
} from "http://localhost:8080/bun:wrap";
-var hmr = new HMR(421762902, "ts-fallback-rewrite-works.ts"), exports = hmr.exports;
-
+var hmr = new HMR(3305050967, "ts-fallback-rewrite-works.ts"), exports = hmr.exports;
(hmr._load = function() {
function test() {
return testDone(import.meta.url);
diff --git a/test/snapshots/tsx-fallback-rewrite-works.hmr.debug.js b/test/snapshots/tsx-fallback-rewrite-works.hmr.debug.js
index ea15fc922..23a941252 100644
--- a/test/snapshots/tsx-fallback-rewrite-works.hmr.debug.js
+++ b/test/snapshots/tsx-fallback-rewrite-works.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(2117426367, "tsx-fallback-rewrite-works.tsx", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(2381755226, "tsx-fallback-rewrite-works.tsx", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
function test() {
return testDone(import.meta.url);
diff --git a/test/snapshots/type-only-imports.hmr.debug.ts b/test/snapshots/type-only-imports.hmr.debug.ts
index ff8f4864b..e5eff6a04 100644
--- a/test/snapshots/type-only-imports.hmr.debug.ts
+++ b/test/snapshots/type-only-imports.hmr.debug.ts
@@ -2,12 +2,10 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__HMRModule as HMR
} from "http://localhost:8080/bun:wrap";
-var hmr = new HMR(650094581, "type-only-imports.ts"), exports = hmr.exports;
-
+var hmr = new HMR(4067108788, "type-only-imports.ts"), exports = hmr.exports;
(hmr._load = function() {
var baconator = true;
var SilentSymbolCollisionsAreOkayInTypeScript = true;
diff --git a/test/snapshots/unicode-identifiers.hmr.debug.js b/test/snapshots/unicode-identifiers.hmr.debug.js
index 53fbb30d5..b92d128e7 100644
--- a/test/snapshots/unicode-identifiers.hmr.debug.js
+++ b/test/snapshots/unicode-identifiers.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(1398361736, "unicode-identifiers.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(4019005355, "unicode-identifiers.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
var ε = 0.000001;
var ε2 = ε * ε;
diff --git a/test/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js b/test/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js
index bbb0a451c..f98337c7f 100644
--- a/test/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js
+++ b/test/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js
@@ -2,15 +2,13 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(635901064, "void-shouldnt-delete-call-expressions.js", FastRefresh), exports = hmr.exports;
-
+var hmr = new FastHMR(2720826654, "void-shouldnt-delete-call-expressions.js", FastRefresh), exports = hmr.exports;
(hmr._load = function() {
var was_called = false;
function thisShouldBeCalled() {