diff options
27 files changed, 132 insertions, 125 deletions
diff --git a/integration/snapshots/array-args-with-default-values.hmr.js b/integration/snapshots/array-args-with-default-values.hmr.js index ba630914e..aae356eed 100644 --- a/integration/snapshots/array-args-with-default-values.hmr.js +++ b/integration/snapshots/array-args-with-default-values.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(3474597122, "array-args-with-default-values.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/bundled-entry-point.hmr.js b/integration/snapshots/bundled-entry-point.hmr.js index ecd58f27f..f3008327a 100644 --- a/integration/snapshots/bundled-entry-point.hmr.js +++ b/integration/snapshots/bundled-entry-point.hmr.js @@ -1,14 +1,14 @@ import { __require as require -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -import * as $bbcd215f from "http://localhost:3000/node_modules/react/index.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js"; +Bun.activate(false); var hmr = new HMR(3012834585, "bundled-entry-point.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.js b/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.js index 1b0145778..ef0bd004e 100644 --- a/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.js +++ b/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.js @@ -1,15 +1,15 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -import _login from "http://localhost:3000/_login.js"; -import _auth from "http://localhost:3000/_auth.js"; -import * as _loginReally from "http://localhost:3000/_login.js"; -import * as _loginReally2 from "http://localhost:3000/_login.js"; -import * as _authReally from "http://localhost:3000/_auth.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +import _login from "http://localhost:8080/_login.js"; +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"; +Bun.activate(false); var hmr = new HMR(3878252498, "cjs-transform-shouldnt-have-static-imports-in-cjs-function.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/code-simplification-neql-define.hmr.js b/integration/snapshots/code-simplification-neql-define.hmr.js index f4b3cd867..1e517c533 100644 --- a/integration/snapshots/code-simplification-neql-define.hmr.js +++ b/integration/snapshots/code-simplification-neql-define.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(726376257, "code-simplification-neql-define.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/custom-emotion-jsx/file.hmr.jsx b/integration/snapshots/custom-emotion-jsx/file.hmr.jsx index cde211e91..da190ef0d 100644 --- a/integration/snapshots/custom-emotion-jsx/file.hmr.jsx +++ b/integration/snapshots/custom-emotion-jsx/file.hmr.jsx @@ -1,18 +1,18 @@ import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __require as require -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; -import * as JSX from "http://localhost:3000/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js"; +} from "http://localhost:8080/__runtime.js"; +import * as JSX from "http://localhost:8080/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js"; var jsx = require(JSX).jsxDEV; -import * as $5b3cea55 from "http://localhost:3000/node_modules/react-dom/index.js"; +import * as $5b3cea55 from "http://localhost:8080/node_modules/react-dom/index.js"; var ReactDOM = require($5b3cea55); -Bun.activate(true); +Bun.activate(false); var hmr = new HMR(2497996991, "custom-emotion-jsx/file.jsx"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/export.hmr.js b/integration/snapshots/export.hmr.js index dd99103b5..6088ffd77 100644 --- a/integration/snapshots/export.hmr.js +++ b/integration/snapshots/export.hmr.js @@ -1,12 +1,12 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -import what from "http://localhost:3000/_auth.js"; -import * as where from "http://localhost:3000/_auth.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +import what from "http://localhost:8080/_auth.js"; +import * as where from "http://localhost:8080/_auth.js"; +Bun.activate(false); var hmr = new HMR(1879780259, "export.js"), exports = hmr.exports; (hmr._load = function() { @@ -68,7 +68,7 @@ export { $$hmr_booop as booop, $$hmr_test as test }; -export {default as auth} from "http://localhost:3000/_auth.js"; -export {default as login} from "http://localhost:3000/_login.js"; -export * from "http://localhost:3000/_bacon.js"; -export {} from "http://localhost:3000/_bacon.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 {} from "http://localhost:8080/_bacon.js"; diff --git a/integration/snapshots/forbid-in-is-correct.hmr.js b/integration/snapshots/forbid-in-is-correct.hmr.js index 2f15a5c4e..bd20b7b42 100644 --- a/integration/snapshots/forbid-in-is-correct.hmr.js +++ b/integration/snapshots/forbid-in-is-correct.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(346837007, "forbid-in-is-correct.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/global-is-remapped-to-globalThis.hmr.js b/integration/snapshots/global-is-remapped-to-globalThis.hmr.js index ecf6b285a..a5a3723a6 100644 --- a/integration/snapshots/global-is-remapped-to-globalThis.hmr.js +++ b/integration/snapshots/global-is-remapped-to-globalThis.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(713665787, "global-is-remapped-to-globalThis.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/jsx-entities.hmr.jsx b/integration/snapshots/jsx-entities.hmr.jsx index 0eb36afd9..2ec3158d6 100644 --- a/integration/snapshots/jsx-entities.hmr.jsx +++ b/integration/snapshots/jsx-entities.hmr.jsx @@ -1,20 +1,20 @@ import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __require as require -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; -import * as JSX from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js"; -import * as $bbcd215f from "http://localhost:3000/node_modules/react/index.js"; +} from "http://localhost:8080/__runtime.js"; +import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js"; +import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js"; var JSXClassic = require($bbcd215f); var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment; -import * as $1f6f0e67 from "http://localhost:3000/node_modules/react-dom/server.browser.js"; +import * as $1f6f0e67 from "http://localhost:8080/node_modules/react-dom/server.browser.js"; var ReactDOM = require($1f6f0e67); -Bun.activate(true); +Bun.activate(false); var hmr = new HMR(817082122, "jsx-entities.jsx"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/jsx-spacing.hmr.jsx b/integration/snapshots/jsx-spacing.hmr.jsx index 5a5ded7d0..d41bc53c7 100644 --- a/integration/snapshots/jsx-spacing.hmr.jsx +++ b/integration/snapshots/jsx-spacing.hmr.jsx @@ -1,18 +1,18 @@ import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __require as require -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; -import * as JSX from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js"; +} from "http://localhost:8080/__runtime.js"; +import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js"; var jsx = require(JSX).jsxDEV; -import * as $1f6f0e67 from "http://localhost:3000/node_modules/react-dom/server.browser.js"; +import * as $1f6f0e67 from "http://localhost:8080/node_modules/react-dom/server.browser.js"; var ReactDOM = require($1f6f0e67); -Bun.activate(true); +Bun.activate(false); var hmr = new HMR(3614189736, "jsx-spacing.jsx"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/latin1-chars-in-regexp.hmr.js b/integration/snapshots/latin1-chars-in-regexp.hmr.js index f0ef69cfd..03b9344e4 100644 --- a/integration/snapshots/latin1-chars-in-regexp.hmr.js +++ b/integration/snapshots/latin1-chars-in-regexp.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(1430071586, "latin1-chars-in-regexp.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/lodash-regexp.hmr.js b/integration/snapshots/lodash-regexp.hmr.js index 8a4c1854b..cd9ca40f7 100644 --- a/integration/snapshots/lodash-regexp.hmr.js +++ b/integration/snapshots/lodash-regexp.hmr.js @@ -1,15 +1,15 @@ import { __require as require -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -import * as $60f52dc2 from "http://localhost:3000/node_modules/lodash/lodash.js"; +} from "http://localhost:8080/__runtime.js"; +import * as $60f52dc2 from "http://localhost:8080/node_modules/lodash/lodash.js"; var { shuffle} = require($60f52dc2); -Bun.activate(true); +Bun.activate(false); var hmr = new HMR(2158065009, "lodash-regexp.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/multiple-imports.hmr.js b/integration/snapshots/multiple-imports.hmr.js index a303d7a74..03cfe9d1a 100644 --- a/integration/snapshots/multiple-imports.hmr.js +++ b/integration/snapshots/multiple-imports.hmr.js @@ -1,20 +1,20 @@ import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __require as require -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; -import * as JSX from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js"; -import * as $bbcd215f from "http://localhost:3000/node_modules/react/index.js"; +} from "http://localhost:8080/__runtime.js"; +import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js"; +import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js"; var JSXClassic = require($bbcd215f); var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment; var { default: React} = require($bbcd215f); var { default: React2} = require($bbcd215f); -Bun.activate(true); +Bun.activate(false); var hmr = new HMR(2165509932, "multiple-imports.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/number-literal-bug.hmr.js b/integration/snapshots/number-literal-bug.hmr.js index 23c6b1405..87cd08433 100644 --- a/integration/snapshots/number-literal-bug.hmr.js +++ b/integration/snapshots/number-literal-bug.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(583570002, "number-literal-bug.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/optional-chain-with-function.hmr.js b/integration/snapshots/optional-chain-with-function.hmr.js index 50852ae3c..91666bf96 100644 --- a/integration/snapshots/optional-chain-with-function.hmr.js +++ b/integration/snapshots/optional-chain-with-function.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(3608848620, "optional-chain-with-function.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/package-json-exports/index.hmr.js b/integration/snapshots/package-json-exports/index.hmr.js index 14b31615f..d4e1aff18 100644 --- a/integration/snapshots/package-json-exports/index.hmr.js +++ b/integration/snapshots/package-json-exports/index.hmr.js @@ -1,21 +1,21 @@ import { __require as require -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -import * as $4068f25b from "http://localhost:3000/package-json-exports/node_modules/inexact/browser/index.js"; +} from "http://localhost:8080/__runtime.js"; +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:3000/package-json-exports/node_modules/inexact/browser/dir/file.js"; +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:3000/package-json-exports/node_modules/inexact/browser/foo.js"; +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:3000/package-json-exports/node_modules/js-only-exports/browser/js-file.js"; +import * as $fce83cd7 from "http://localhost:8080/package-json-exports/node_modules/js-only-exports/browser/js-file.js"; var JSFileExtensionOnly = require($fce83cd7); -Bun.activate(true); +Bun.activate(false); var hmr = new HMR(1953708113, "package-json-exports/index.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/react-context-value-func.hmr.tsx b/integration/snapshots/react-context-value-func.hmr.tsx index ce8a4fd15..c6313661e 100644 --- a/integration/snapshots/react-context-value-func.hmr.tsx +++ b/integration/snapshots/react-context-value-func.hmr.tsx @@ -1,18 +1,18 @@ import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __require as require -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; -import * as JSX from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js"; +} from "http://localhost:8080/__runtime.js"; +import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js"; var jsx = require(JSX).jsxDEV; -import * as $bbcd215f from "http://localhost:3000/node_modules/react/index.js"; +import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js"; var { default: React} = require($bbcd215f); -Bun.activate(true); +Bun.activate(false); var hmr = new HMR(3514348331, "react-context-value-func.tsx"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/spread_with_key.hmr.tsx b/integration/snapshots/spread_with_key.hmr.tsx index 99986b705..4b5d9ccf6 100644 --- a/integration/snapshots/spread_with_key.hmr.tsx +++ b/integration/snapshots/spread_with_key.hmr.tsx @@ -1,19 +1,19 @@ import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __require as require -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; -import * as JSX from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js"; -import * as $bbcd215f from "http://localhost:3000/node_modules/react/index.js"; +} from "http://localhost:8080/__runtime.js"; +import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js"; +import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js"; var JSXClassic = require($bbcd215f); var jsx = require(JSX).jsxDEV, jsxEl = require(JSXClassic).createElement; var { default: React} = require($bbcd215f); -Bun.activate(true); +Bun.activate(false); var hmr = new HMR(2717584935, "spread_with_key.tsx"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/string-escapes.hmr.js b/integration/snapshots/string-escapes.hmr.js index 1a768075b..e1f38c7af 100644 --- a/integration/snapshots/string-escapes.hmr.js +++ b/integration/snapshots/string-escapes.hmr.js @@ -1,18 +1,18 @@ import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __require as require -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; -import * as JSX from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js"; -import * as $bbcd215f from "http://localhost:3000/node_modules/react/index.js"; +} from "http://localhost:8080/__runtime.js"; +import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js"; +import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js"; var JSXClassic = require($bbcd215f); var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment; -Bun.activate(true); +Bun.activate(false); var hmr = new HMR(2482749838, "string-escapes.js"), exports = hmr.exports; (hmr._load = function() { var tab = "\t"; diff --git a/integration/snapshots/styledcomponents-output.hmr.js b/integration/snapshots/styledcomponents-output.hmr.js index 0d1dbdd7c..5f0d525a4 100644 --- a/integration/snapshots/styledcomponents-output.hmr.js +++ b/integration/snapshots/styledcomponents-output.hmr.js @@ -1,22 +1,22 @@ import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __require as require -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; -import * as JSX from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js"; +} from "http://localhost:8080/__runtime.js"; +import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js"; var jsx = require(JSX).jsxDEV; -import * as $d4051a2e from "http://localhost:3000/node_modules/styled-components/dist/styled-components.browser.esm.js"; +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:3000/node_modules/react/index.js"; +import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js"; var { default: React} = require($bbcd215f); -import * as $5b3cea55 from "http://localhost:3000/node_modules/react-dom/index.js"; +import * as $5b3cea55 from "http://localhost:8080/node_modules/react-dom/index.js"; var { default: ReactDOM} = require($5b3cea55); -Bun.activate(true); +Bun.activate(false); var hmr = new HMR(1290604342, "styledcomponents-output.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/template-literal.hmr.js b/integration/snapshots/template-literal.hmr.js index a7ef232bf..d27857c77 100644 --- a/integration/snapshots/template-literal.hmr.js +++ b/integration/snapshots/template-literal.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(2201713056, "template-literal.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/template-literal.js b/integration/snapshots/template-literal.js index 5ed5af7ad..e5c4c09a7 100644 --- a/integration/snapshots/template-literal.js +++ b/integration/snapshots/template-literal.js @@ -21,10 +21,17 @@ const fooUTF16 = css` after `; +const templateLiteralWhichDefinesAFunction = ((...args) => args[args.length - 1]().toString())` + before + 🙃 ${() => true} + after + +`; export function test() { for (let foo of [fooNoBracesUT16, fooNoBracesUTF8, fooUTF16, fooUTF8]) { console.assert(foo.includes("before"), `Expected ${foo} to include "before"`); console.assert(foo.includes("after"), `Expected ${foo} to include "after"`); } + console.assert(templateLiteralWhichDefinesAFunction.includes("true"), "Expected fooFunction to include 'true'"); return testDone(import.meta.url); } diff --git a/integration/snapshots/ts-fallback-rewrite-works.hmr.js b/integration/snapshots/ts-fallback-rewrite-works.hmr.js index c235770fd..e728c5f14 100644 --- a/integration/snapshots/ts-fallback-rewrite-works.hmr.js +++ b/integration/snapshots/ts-fallback-rewrite-works.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(421762902, "ts-fallback-rewrite-works.ts"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/tsx-fallback-rewrite-works.hmr.js b/integration/snapshots/tsx-fallback-rewrite-works.hmr.js index 8cc25812c..3f2f754e2 100644 --- a/integration/snapshots/tsx-fallback-rewrite-works.hmr.js +++ b/integration/snapshots/tsx-fallback-rewrite-works.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(2117426367, "tsx-fallback-rewrite-works.tsx"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/type-only-imports.hmr.ts b/integration/snapshots/type-only-imports.hmr.ts index e14336a72..84740d0d9 100644 --- a/integration/snapshots/type-only-imports.hmr.ts +++ b/integration/snapshots/type-only-imports.hmr.ts @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(650094581, "type-only-imports.ts"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/unicode-identifiers.hmr.js b/integration/snapshots/unicode-identifiers.hmr.js index 18dc3877f..5d465d559 100644 --- a/integration/snapshots/unicode-identifiers.hmr.js +++ b/integration/snapshots/unicode-identifiers.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(1398361736, "unicode-identifiers.js"), exports = hmr.exports; (hmr._load = function() { diff --git a/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.js b/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.js index fe743f652..239b40fbd 100644 --- a/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.js +++ b/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:3000/__runtime.js"; +} from "http://localhost:8080/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:3000/__runtime.js"; -Bun.activate(true); +} from "http://localhost:8080/__runtime.js"; +Bun.activate(false); var hmr = new HMR(635901064, "void-shouldnt-delete-call-expressions.js"), exports = hmr.exports; (hmr._load = function() { |