From 68f45ef54ed722a54098110765c4963db5eceed7 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Fri, 23 Sep 2022 09:03:51 -0700 Subject: [PATCH] :camera: --- test/scripts/bun.lockb | Bin 15723 -> 19458 bytes ...rray-args-with-default-values.hmr.debug.js | 4 +--- test/snapshots/bundled-entry-point.debug.js | 6 ++--- .../bundled-entry-point.hmr.debug.js | 8 +++---- test/snapshots/caught-require.debug.js | 8 +++---- test/snapshots/caught-require.hmr.debug.js | 10 ++++---- ...ve-static-imports-in-cjs-function.debug.js | 1 - ...tatic-imports-in-cjs-function.hmr.debug.js | 4 +--- .../code-simplification-neql-define.debug.js | 2 +- ...de-simplification-neql-define.hmr.debug.js | 6 ++--- .../custom-emotion-jsx/file.debug.jsx | 10 ++++---- .../custom-emotion-jsx/file.hmr.debug.jsx | 13 ++++------- .../export-default-module-hot.hmr.debug.js | 4 +--- test/snapshots/export.debug.js | 2 -- test/snapshots/export.hmr.debug.js | 4 +--- .../forbid-in-is-correct.hmr.debug.js | 4 +--- ...bal-is-remapped-to-globalThis.hmr.debug.js | 4 +--- test/snapshots/jsx-entities.debug.jsx | 14 +++++------ test/snapshots/jsx-entities.hmr.debug.jsx | 17 ++++++-------- test/snapshots/jsx-spacing.debug.jsx | 10 ++++---- test/snapshots/jsx-spacing.hmr.debug.jsx | 13 ++++------- .../latin1-chars-in-regexp.hmr.debug.js | 4 +--- test/snapshots/lodash-regexp.debug.js | 8 +++---- test/snapshots/lodash-regexp.hmr.debug.js | 10 ++++---- test/snapshots/multiple-imports.debug.js | 14 +++++------ test/snapshots/multiple-imports.hmr.debug.js | 17 ++++++-------- test/snapshots/multiple-var.hmr.debug.js | 4 +--- .../snapshots/number-literal-bug.hmr.debug.js | 4 +--- .../optional-chain-with-function.hmr.debug.js | 4 +--- .../package-json-exports/index.debug.js | 20 +++++++--------- .../package-json-exports/index.hmr.debug.js | 22 ++++++++---------- test/snapshots/package-json-utf8.debug.js | 2 -- test/snapshots/package-json-utf8.hmr.debug.js | 4 +--- .../react-context-value-func.debug.tsx | 10 ++++---- .../react-context-value-func.hmr.debug.tsx | 13 ++++------- test/snapshots/spread_with_key.debug.tsx | 13 ++++------- test/snapshots/spread_with_key.hmr.debug.tsx | 15 +++++------- test/snapshots/string-escapes.debug.js | 9 ++++--- test/snapshots/string-escapes.hmr.debug.js | 12 ++++------ .../styledcomponents-output.debug.js | 18 +++++++------- .../styledcomponents-output.hmr.debug.js | 21 +++++++---------- test/snapshots/template-literal.hmr.debug.js | 4 +--- .../ts-fallback-rewrite-works.hmr.debug.js | 4 +--- .../tsx-fallback-rewrite-works.hmr.debug.js | 4 +--- test/snapshots/type-only-imports.hmr.debug.ts | 4 +--- .../unicode-identifiers.hmr.debug.js | 4 +--- ...uldnt-delete-call-expressions.hmr.debug.js | 4 +--- 47 files changed, 150 insertions(+), 242 deletions(-) diff --git a/test/scripts/bun.lockb b/test/scripts/bun.lockb index 4d944995a57cd4c01b9a7cf72486b28f28e6f8b0..992cad73b841c7fb3253fb714cdaeab1f3086a95 100755 GIT binary patch delta 7534 zcmc&(d0bOh7EVG~WD!tW0kK%c1@VO>gdH_e#FfPt7Zn*R6s_MyWj$v@lN_GwU2%fzUj3C)eoS#v5A#&T{F zNXqr7EOTa~%FVvB5u3#t#9|ferCLI!W3j{_$q~j?(7Hm)v0k!bLVO+vN9Clpzn|3Ug8w~Z(VzI9Fv=|+T`HiJydlS4lT9Kg>|5Q67Z zppWG}g%51xbojvIWzxJtCCnX%F{anU2dErUtRYnySU@i$Ag(T)bA}zScFKk@v3vxb zT-+L;o{bX)x3AjbVd^L@i#6Lg!L(1|!CeRu6%0_piUf5ifh&3m2E{vpFcDe^3JdTo zJH)mPaKc> z#Q#pFLUZ4$K5Si=o#Y z%t&AciCt+EhPu$=%?XGF3SG+(Zpx@Pfr8DnH6`E(P~x$ek#2M>9l!{)(-Mckzm&Pz zO1Mq!S*z<>?y^SI7adSGwD;9!x~}U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NrUIB8Yb7%Pyc!!t<^uR4Hi%1)i;co9 z4a>UX5qN zSQ?)lQDN2!Vg!|{Qe6R>aq}y*T8**7tSik|nKaQ-L9q$X!8-^i;onN6xf zjovK4Sqe2~DuL2mWzd*}j=`AH_2mT`ZGpg4s#9x>&XfYRQ7wsrZ>Kh*(UJXM6E97m 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 e219cbd9a5..6d1da09d14 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 51562933fa..12722a5c11 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 622b6b75bf..b954e88686 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 73608f8e36..7c356a21db 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 5beecb99b5..f2a75dbe15 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 1bd6883d83..77e4fc6950 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 f685557dce..b862421e62 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 6c0e684dfb..bf526597c9 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 8d4f820527..663c43e3ab 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 466cd4697e..48cb6b175d 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 a046f2e1cb..981ec4be81 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 6230c29a15..7b308aa210 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 986d3b45f2..84fe5b8e9c 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 4bcc6ef59e..dbe3fae5d7 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 83a447fc4a..d41d6ba76a 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 1f6619161a..83e45c0c5e 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 9fd075bc6f..7fd4f1eacc 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 07915e50a3..289d03d2e8 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 bfbcab92fb..477e56fc59 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 d9ec4e2041..197395eb93 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 fee5714a29..f6de90be6a 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 b1566fb6d6..fa168dcaee 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 959e9e9c1b..83469a1eb8 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 af9396b464..ce4e25988b 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 5cca375b28..ac4e34cce7 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 a5298f4623..d24b4d243b 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 852aef372e..7f06df6495 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 e7f97cb3f8..4ad140c1e6 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 3d41a79854..8ed8f13768 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 e6cdaefba5..0a2b50e863 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 8845090f0d..b08c3804d1 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 fe11070c24..079e9bb137 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 71b5e5f605..6ebe7c0ceb 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 d17a8fa887..2a88332518 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 e096a76c8d..23ca37805a 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 0123867ee3..0799ffcf24 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 9084bc3628..4ac8de6351 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 a247fc16d6..4ec50b9e0b 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 f3a59d3656..bf517375f7 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 027d5f35b2..8f7fec3b5d 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 b5a8ac52b0..4ec28577ee 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 1d59ba0d53..e032235471 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 ea15fc9229..23a941252b 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 ff8f4864b2..e5eff6a047 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 53fbb30d52..b92d128e77 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 bbb0a451cb..f98337c7ff 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() {