aboutsummaryrefslogtreecommitdiff
path: root/integration
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-01-28 19:26:03 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-01-28 19:26:03 -0800
commit97d17904d3f6b850e8973b84d6b4ad5e22afb941 (patch)
tree36324992d636cf889b878e99ecd21747753eca8e /integration
parent98af486b89122654f5112926139ab3da464260f4 (diff)
downloadbun-97d17904d3f6b850e8973b84d6b4ad5e22afb941.tar.gz
bun-97d17904d3f6b850e8973b84d6b4ad5e22afb941.tar.zst
bun-97d17904d3f6b850e8973b84d6b4ad5e22afb941.zip
Update AST layout to store capacity for items
We want to be able to push to the list
Diffstat (limited to 'integration')
-rw-r--r--integration/snapshots/array-args-with-default-values.hmr.js6
-rw-r--r--integration/snapshots/bundled-entry-point.hmr.js10
-rw-r--r--integration/snapshots/caught-require.hmr.debug.js6
-rw-r--r--integration/snapshots/caught-require.hmr.js8
-rw-r--r--integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.js16
-rw-r--r--integration/snapshots/code-simplification-neql-define.hmr.js6
-rw-r--r--integration/snapshots/custom-emotion-jsx/file.hmr.debug.jsx9
-rw-r--r--integration/snapshots/custom-emotion-jsx/file.hmr.jsx12
-rw-r--r--integration/snapshots/export.hmr.js18
-rw-r--r--integration/snapshots/forbid-in-is-correct.hmr.js6
-rw-r--r--integration/snapshots/global-is-remapped-to-globalThis.hmr.js6
-rw-r--r--integration/snapshots/jsx-entities.hmr.debug.jsx9
-rw-r--r--integration/snapshots/jsx-entities.hmr.jsx14
-rw-r--r--integration/snapshots/jsx-spacing.hmr.debug.jsx9
-rw-r--r--integration/snapshots/jsx-spacing.hmr.jsx12
-rw-r--r--integration/snapshots/latin1-chars-in-regexp.hmr.debug.js4
-rw-r--r--integration/snapshots/latin1-chars-in-regexp.hmr.js6
-rw-r--r--integration/snapshots/lodash-regexp.hmr.js10
-rw-r--r--integration/snapshots/multiple-imports.hmr.js12
-rw-r--r--integration/snapshots/number-literal-bug.hmr.debug.js4
-rw-r--r--integration/snapshots/number-literal-bug.hmr.js6
-rw-r--r--integration/snapshots/optional-chain-with-function.hmr.debug.js4
-rw-r--r--integration/snapshots/optional-chain-with-function.hmr.js6
-rw-r--r--integration/snapshots/package-json-exports/index.hmr.js16
-rw-r--r--integration/snapshots/react-context-value-func.hmr.debug.tsx9
-rw-r--r--integration/snapshots/react-context-value-func.hmr.tsx12
-rw-r--r--integration/snapshots/spread_with_key.hmr.tsx12
-rw-r--r--integration/snapshots/string-escapes.hmr.js12
-rw-r--r--integration/snapshots/styledcomponents-output.hmr.debug.js9
-rw-r--r--integration/snapshots/styledcomponents-output.hmr.js16
-rw-r--r--integration/snapshots/template-literal.hmr.debug.js4
-rw-r--r--integration/snapshots/template-literal.hmr.js6
-rw-r--r--integration/snapshots/ts-fallback-rewrite-works.hmr.js6
-rw-r--r--integration/snapshots/tsx-fallback-rewrite-works.hmr.js6
-rw-r--r--integration/snapshots/type-only-imports.hmr.ts6
-rw-r--r--integration/snapshots/unicode-identifiers.hmr.js6
-rw-r--r--integration/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js4
-rw-r--r--integration/snapshots/void-shouldnt-delete-call-expressions.hmr.js6
38 files changed, 167 insertions, 162 deletions
diff --git a/integration/snapshots/array-args-with-default-values.hmr.js b/integration/snapshots/array-args-with-default-values.hmr.js
index 7cf643b9d..467ccd733 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
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 45e9f0dba..30a619535 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+import * as $bbcd215f from "http://localhost:3000/node_modules/react/index.js";
+Bun.activate(true);
var hmr = new HMR(3012834585, "bundled-entry-point.js"), exports = hmr.exports;
(hmr._load = function() {
diff --git a/integration/snapshots/caught-require.hmr.debug.js b/integration/snapshots/caught-require.hmr.debug.js
index 2cd9f386d..7144220d8 100644
--- a/integration/snapshots/caught-require.hmr.debug.js
+++ b/integration/snapshots/caught-require.hmr.debug.js
@@ -1,12 +1,12 @@
import {
__require as require
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
var hmr = new HMR(2398506918, "caught-require.js"), exports = hmr.exports;
diff --git a/integration/snapshots/caught-require.hmr.js b/integration/snapshots/caught-require.hmr.js
index 3c604d74d..57f98636c 100644
--- a/integration/snapshots/caught-require.hmr.js
+++ b/integration/snapshots/caught-require.hmr.js
@@ -1,13 +1,13 @@
import {
__require as require
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
var hmr = new HMR(2398506918, "caught-require.js"), exports = hmr.exports;
await (hmr._load = async 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 4934b46b9..289262c1e 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-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);
+} from "http://localhost:3000/bun:wrap";
+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);
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 64a03dda4..c1523ee6e 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
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.debug.jsx b/integration/snapshots/custom-emotion-jsx/file.hmr.debug.jsx
index bd299b2a8..896bd2e93 100644
--- a/integration/snapshots/custom-emotion-jsx/file.hmr.debug.jsx
+++ b/integration/snapshots/custom-emotion-jsx/file.hmr.debug.jsx
@@ -1,13 +1,14 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:runtime";
-import * as JSX from "http://localhost:8080/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js";
+} 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);
var jsx = require(JSX).jsxDEV;
import * as $5b3cea55 from "http://localhost:8080/node_modules/react-dom/index.js";
diff --git a/integration/snapshots/custom-emotion-jsx/file.hmr.jsx b/integration/snapshots/custom-emotion-jsx/file.hmr.jsx
index aae7c50c0..398690a7e 100644
--- a/integration/snapshots/custom-emotion-jsx/file.hmr.jsx
+++ b/integration/snapshots/custom-emotion-jsx/file.hmr.jsx
@@ -1,19 +1,19 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRModule as HMR
-} 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";
+} from "http://localhost:3000/bun:wrap";
+import * as $72625799 from "http://localhost:3000/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js";
var JSX = require($72625799);
var jsx = require(JSX).jsxDEV;
-import * as $5b3cea55 from "http://localhost:8080/node_modules/react-dom/index.js";
+import * as $5b3cea55 from "http://localhost:3000/node_modules/react-dom/index.js";
var ReactDOM = require($5b3cea55);
-Bun.activate(false);
+Bun.activate(true);
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 b0c14bbc6..ef1963323 100644
--- a/integration/snapshots/export.hmr.js
+++ b/integration/snapshots/export.hmr.js
@@ -1,12 +1,12 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-import what from "http://localhost:8080/_auth.js";
-import * as where from "http://localhost:8080/_auth.js";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+import what from "http://localhost:3000/_auth.js";
+import * as where from "http://localhost:3000/_auth.js";
+Bun.activate(true);
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: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";
+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";
diff --git a/integration/snapshots/forbid-in-is-correct.hmr.js b/integration/snapshots/forbid-in-is-correct.hmr.js
index 7ecffa276..2b55a976a 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
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 1abe6edd6..6872df8ca 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
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.debug.jsx b/integration/snapshots/jsx-entities.hmr.debug.jsx
index 5427483d3..4c4e6ac85 100644
--- a/integration/snapshots/jsx-entities.hmr.debug.jsx
+++ b/integration/snapshots/jsx-entities.hmr.debug.jsx
@@ -1,13 +1,14 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:runtime";
-import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+} 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);
var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment;
diff --git a/integration/snapshots/jsx-entities.hmr.jsx b/integration/snapshots/jsx-entities.hmr.jsx
index 6a8e19e2c..f7e3df0b0 100644
--- a/integration/snapshots/jsx-entities.hmr.jsx
+++ b/integration/snapshots/jsx-entities.hmr.jsx
@@ -1,21 +1,21 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+} from "http://localhost:3000/bun:wrap";
+import * as $2f488e5b from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js";
var JSX = require($2f488e5b);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
+import * as $bbcd215f from "http://localhost:3000/node_modules/react/index.js";
var JSXClassic = require($bbcd215f);
var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment;
-import * as $1f6f0e67 from "http://localhost:8080/node_modules/react-dom/server.browser.js";
+import * as $1f6f0e67 from "http://localhost:3000/node_modules/react-dom/server.browser.js";
var ReactDOM = require($1f6f0e67);
-Bun.activate(false);
+Bun.activate(true);
var hmr = new HMR(817082122, "jsx-entities.jsx"), exports = hmr.exports;
(hmr._load = function() {
diff --git a/integration/snapshots/jsx-spacing.hmr.debug.jsx b/integration/snapshots/jsx-spacing.hmr.debug.jsx
index 462469ba5..d82957a7a 100644
--- a/integration/snapshots/jsx-spacing.hmr.debug.jsx
+++ b/integration/snapshots/jsx-spacing.hmr.debug.jsx
@@ -1,13 +1,14 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:runtime";
-import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+} from "http://localhost:8080/bun:wrap";
+import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($2f488e5b);
var jsx = require(JSX).jsxDEV;
import * as $1f6f0e67 from "http://localhost:8080/node_modules/react-dom/server.browser.js";
diff --git a/integration/snapshots/jsx-spacing.hmr.jsx b/integration/snapshots/jsx-spacing.hmr.jsx
index 41cf523a3..c6eb4b979 100644
--- a/integration/snapshots/jsx-spacing.hmr.jsx
+++ b/integration/snapshots/jsx-spacing.hmr.jsx
@@ -1,19 +1,19 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+} from "http://localhost:3000/bun:wrap";
+import * as $2f488e5b from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js";
var JSX = require($2f488e5b);
var jsx = require(JSX).jsxDEV;
-import * as $1f6f0e67 from "http://localhost:8080/node_modules/react-dom/server.browser.js";
+import * as $1f6f0e67 from "http://localhost:3000/node_modules/react-dom/server.browser.js";
var ReactDOM = require($1f6f0e67);
-Bun.activate(false);
+Bun.activate(true);
var hmr = new HMR(3614189736, "jsx-spacing.jsx"), exports = hmr.exports;
(hmr._load = function() {
diff --git a/integration/snapshots/latin1-chars-in-regexp.hmr.debug.js b/integration/snapshots/latin1-chars-in-regexp.hmr.debug.js
index db7f60ee3..29ce11711 100644
--- a/integration/snapshots/latin1-chars-in-regexp.hmr.debug.js
+++ b/integration/snapshots/latin1-chars-in-regexp.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
var hmr = new HMR(1430071586, "latin1-chars-in-regexp.js"), exports = hmr.exports;
diff --git a/integration/snapshots/latin1-chars-in-regexp.hmr.js b/integration/snapshots/latin1-chars-in-regexp.hmr.js
index b223df7b3..5baf94817 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
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 04db31a93..78e5609af 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-import * as $60f52dc2 from "http://localhost:8080/node_modules/lodash/lodash.js";
+} from "http://localhost:3000/bun:wrap";
+import * as $60f52dc2 from "http://localhost:3000/node_modules/lodash/lodash.js";
var { shuffle} = require($60f52dc2);
-Bun.activate(false);
+Bun.activate(true);
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 90fa24453..8945c5424 100644
--- a/integration/snapshots/multiple-imports.hmr.js
+++ b/integration/snapshots/multiple-imports.hmr.js
@@ -1,21 +1,21 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+} from "http://localhost:3000/bun:wrap";
+import * as $2f488e5b from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js";
var JSX = require($2f488e5b);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
+import * as $bbcd215f from "http://localhost:3000/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(false);
+Bun.activate(true);
var hmr = new HMR(2165509932, "multiple-imports.js"), exports = hmr.exports;
(hmr._load = function() {
diff --git a/integration/snapshots/number-literal-bug.hmr.debug.js b/integration/snapshots/number-literal-bug.hmr.debug.js
index 96e0dc96c..81dd56694 100644
--- a/integration/snapshots/number-literal-bug.hmr.debug.js
+++ b/integration/snapshots/number-literal-bug.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
var hmr = new HMR(583570002, "number-literal-bug.js"), exports = hmr.exports;
diff --git a/integration/snapshots/number-literal-bug.hmr.js b/integration/snapshots/number-literal-bug.hmr.js
index ce74e60a0..f83254c0d 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
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.debug.js b/integration/snapshots/optional-chain-with-function.hmr.debug.js
index f4c7a3641..68b71ddcc 100644
--- a/integration/snapshots/optional-chain-with-function.hmr.debug.js
+++ b/integration/snapshots/optional-chain-with-function.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
var hmr = new HMR(3608848620, "optional-chain-with-function.js"), exports = hmr.exports;
diff --git a/integration/snapshots/optional-chain-with-function.hmr.js b/integration/snapshots/optional-chain-with-function.hmr.js
index 784ef9b55..b75166c90 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
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 040004980..e70ea1868 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-import * as $4068f25b from "http://localhost:8080/package-json-exports/node_modules/inexact/browser/index.js";
+} from "http://localhost:3000/bun:wrap";
+import * as $4068f25b from "http://localhost:3000/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";
+import * as $d2a171d2 from "http://localhost:3000/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";
+import * as $522c6d1f from "http://localhost:3000/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";
+import * as $fce83cd7 from "http://localhost:3000/package-json-exports/node_modules/js-only-exports/browser/js-file.js";
var JSFileExtensionOnly = require($fce83cd7);
-Bun.activate(false);
+Bun.activate(true);
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.debug.tsx b/integration/snapshots/react-context-value-func.hmr.debug.tsx
index 4632802d4..cfaca0723 100644
--- a/integration/snapshots/react-context-value-func.hmr.debug.tsx
+++ b/integration/snapshots/react-context-value-func.hmr.debug.tsx
@@ -1,13 +1,14 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:runtime";
-import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+} from "http://localhost:8080/bun:wrap";
+import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($2f488e5b);
var jsx = require(JSX).jsxDEV;
import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
diff --git a/integration/snapshots/react-context-value-func.hmr.tsx b/integration/snapshots/react-context-value-func.hmr.tsx
index 66bcfb36c..42eee99fc 100644
--- a/integration/snapshots/react-context-value-func.hmr.tsx
+++ b/integration/snapshots/react-context-value-func.hmr.tsx
@@ -1,19 +1,19 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+} from "http://localhost:3000/bun:wrap";
+import * as $2f488e5b from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js";
var JSX = require($2f488e5b);
var jsx = require(JSX).jsxDEV;
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
+import * as $bbcd215f from "http://localhost:3000/node_modules/react/index.js";
var { default: React} = require($bbcd215f);
-Bun.activate(false);
+Bun.activate(true);
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 0e36097a4..596ba8700 100644
--- a/integration/snapshots/spread_with_key.hmr.tsx
+++ b/integration/snapshots/spread_with_key.hmr.tsx
@@ -1,20 +1,20 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+} from "http://localhost:3000/bun:wrap";
+import * as $2f488e5b from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js";
var JSX = require($2f488e5b);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
+import * as $bbcd215f from "http://localhost:3000/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(false);
+Bun.activate(true);
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 1b341528c..4c95ef6f3 100644
--- a/integration/snapshots/string-escapes.hmr.js
+++ b/integration/snapshots/string-escapes.hmr.js
@@ -1,19 +1,19 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+} from "http://localhost:3000/bun:wrap";
+import * as $2f488e5b from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js";
var JSX = require($2f488e5b);
-import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
+import * as $bbcd215f from "http://localhost:3000/node_modules/react/index.js";
var JSXClassic = require($bbcd215f);
var jsx = require(JSX).jsxDEV, JSXFrag = require(JSXClassic).Fragment;
-Bun.activate(false);
+Bun.activate(true);
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.debug.js b/integration/snapshots/styledcomponents-output.hmr.debug.js
index cecb4780e..2c93c0c08 100644
--- a/integration/snapshots/styledcomponents-output.hmr.debug.js
+++ b/integration/snapshots/styledcomponents-output.hmr.debug.js
@@ -1,13 +1,14 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:runtime";
-import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+} from "http://localhost:8080/bun:wrap";
+import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+var JSX = require($2f488e5b);
var jsx = require(JSX).jsxDEV;
import * as $d4051a2e from "http://localhost:8080/node_modules/styled-components/dist/styled-components.browser.esm.js";
diff --git a/integration/snapshots/styledcomponents-output.hmr.js b/integration/snapshots/styledcomponents-output.hmr.js
index 6cf42fffd..8967d17e5 100644
--- a/integration/snapshots/styledcomponents-output.hmr.js
+++ b/integration/snapshots/styledcomponents-output.hmr.js
@@ -1,23 +1,23 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__require as require
-} from "http://localhost:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:wrap";
-import * as $2f488e5b from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+} from "http://localhost:3000/bun:wrap";
+import * as $2f488e5b from "http://localhost:3000/node_modules/react/jsx-dev-runtime.js";
var JSX = require($2f488e5b);
var jsx = require(JSX).jsxDEV;
-import * as $d4051a2e from "http://localhost:8080/node_modules/styled-components/dist/styled-components.browser.esm.js";
+import * as $d4051a2e from "http://localhost:3000/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";
+import * as $bbcd215f from "http://localhost:3000/node_modules/react/index.js";
var { default: React} = require($bbcd215f);
-import * as $5b3cea55 from "http://localhost:8080/node_modules/react-dom/index.js";
+import * as $5b3cea55 from "http://localhost:3000/node_modules/react-dom/index.js";
var { default: ReactDOM} = require($5b3cea55);
-Bun.activate(false);
+Bun.activate(true);
var hmr = new HMR(1290604342, "styledcomponents-output.js"), exports = hmr.exports;
(hmr._load = function() {
diff --git a/integration/snapshots/template-literal.hmr.debug.js b/integration/snapshots/template-literal.hmr.debug.js
index a603ab705..b3397e7a5 100644
--- a/integration/snapshots/template-literal.hmr.debug.js
+++ b/integration/snapshots/template-literal.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
var hmr = new HMR(2201713056, "template-literal.js"), exports = hmr.exports;
diff --git a/integration/snapshots/template-literal.hmr.js b/integration/snapshots/template-literal.hmr.js
index 8097787c4..e464c4ee0 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
var hmr = new HMR(2201713056, "template-literal.js"), exports = hmr.exports;
(hmr._load = function() {
diff --git a/integration/snapshots/ts-fallback-rewrite-works.hmr.js b/integration/snapshots/ts-fallback-rewrite-works.hmr.js
index 4f19ee3c6..d4156081f 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
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 3bdda9320..5d5212e12 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
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 b58f0cb4a..384dffc50 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
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 386f79bb2..40b339582 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
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.debug.js b/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js
index fa25488ec..cef7a9290 100644
--- a/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js
+++ b/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:runtime";
+} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
var hmr = new HMR(635901064, "void-shouldnt-delete-call-expressions.js"), exports = hmr.exports;
diff --git a/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.js b/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.js
index d59a41bf6..fc53d5258 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:8080/bun:wrap";
+} from "http://localhost:3000/bun:wrap";
import {
__HMRClient as Bun
-} from "http://localhost:8080/bun:wrap";
-Bun.activate(false);
+} from "http://localhost:3000/bun:wrap";
+Bun.activate(true);
var hmr = new HMR(635901064, "void-shouldnt-delete-call-expressions.js"), exports = hmr.exports;
(hmr._load = function() {