aboutsummaryrefslogtreecommitdiff
path: root/integration
diff options
context:
space:
mode:
Diffstat (limited to 'integration')
-rw-r--r--integration/bunjs-only-snippets/console-log.js58
-rw-r--r--integration/bunjs-only-snippets/fetch.js14
-rw-r--r--integration/bunjs-only-snippets/fetch.js.txt46
-rw-r--r--integration/bunjs-only-snippets/fs-stream.js23
-rw-r--r--integration/bunjs-only-snippets/fs.test.js35
-rw-r--r--integration/bunjs-only-snippets/import-meta.test.js13
-rw-r--r--integration/bunjs-only-snippets/microtask.js76
-rw-r--r--integration/bunjs-only-snippets/process-nexttick.js91
-rw-r--r--integration/bunjs-only-snippets/process.js48
-rw-r--r--integration/bunjs-only-snippets/readFileSync.txt1
-rw-r--r--integration/bunjs-only-snippets/readdir.js9
-rw-r--r--integration/bunjs-only-snippets/sleep.js4
-rw-r--r--integration/bunjs-only-snippets/some-fs.js51
-rw-r--r--integration/scripts/bun.js143
-rwxr-xr-xintegration/scripts/bun.lockbbin17219 -> 17219 bytes
-rw-r--r--integration/snapshots/array-args-with-default-values.hmr.debug.js4
-rw-r--r--integration/snapshots/array-args-with-default-values.hmr.js4
-rw-r--r--integration/snapshots/bundled-entry-point.debug.js2
-rw-r--r--integration/snapshots/bundled-entry-point.hmr.debug.js6
-rw-r--r--integration/snapshots/bundled-entry-point.hmr.js6
-rw-r--r--integration/snapshots/bundled-entry-point.js2
-rw-r--r--integration/snapshots/caught-require.debug.js2
-rw-r--r--integration/snapshots/caught-require.hmr.debug.js6
-rw-r--r--integration/snapshots/caught-require.hmr.js6
-rw-r--r--integration/snapshots/caught-require.js2
-rw-r--r--integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.debug.js4
-rw-r--r--integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.js4
-rw-r--r--integration/snapshots/code-simplification-neql-define.hmr.debug.js4
-rw-r--r--integration/snapshots/code-simplification-neql-define.hmr.js4
-rw-r--r--integration/snapshots/custom-emotion-jsx/file.debug.jsx2
-rw-r--r--integration/snapshots/custom-emotion-jsx/file.hmr.debug.jsx6
-rw-r--r--integration/snapshots/custom-emotion-jsx/file.hmr.jsx6
-rw-r--r--integration/snapshots/custom-emotion-jsx/file.jsx2
-rw-r--r--integration/snapshots/export.hmr.debug.js4
-rw-r--r--integration/snapshots/export.hmr.js4
-rw-r--r--integration/snapshots/forbid-in-is-correct.hmr.debug.js4
-rw-r--r--integration/snapshots/forbid-in-is-correct.hmr.js4
-rw-r--r--integration/snapshots/global-is-remapped-to-globalThis.hmr.debug.js4
-rw-r--r--integration/snapshots/global-is-remapped-to-globalThis.hmr.js4
-rw-r--r--integration/snapshots/jsx-entities.debug.jsx2
-rw-r--r--integration/snapshots/jsx-entities.hmr.debug.jsx6
-rw-r--r--integration/snapshots/jsx-entities.hmr.jsx6
-rw-r--r--integration/snapshots/jsx-entities.jsx2
-rw-r--r--integration/snapshots/jsx-spacing.debug.jsx2
-rw-r--r--integration/snapshots/jsx-spacing.hmr.debug.jsx6
-rw-r--r--integration/snapshots/jsx-spacing.hmr.jsx6
-rw-r--r--integration/snapshots/jsx-spacing.jsx2
-rw-r--r--integration/snapshots/latin1-chars-in-regexp.hmr.debug.js4
-rw-r--r--integration/snapshots/latin1-chars-in-regexp.hmr.js4
-rw-r--r--integration/snapshots/lodash-regexp.debug.js2
-rw-r--r--integration/snapshots/lodash-regexp.hmr.debug.js6
-rw-r--r--integration/snapshots/lodash-regexp.hmr.js6
-rw-r--r--integration/snapshots/lodash-regexp.js2
-rw-r--r--integration/snapshots/multiple-imports.debug.js2
-rw-r--r--integration/snapshots/multiple-imports.hmr.debug.js6
-rw-r--r--integration/snapshots/multiple-imports.hmr.js6
-rw-r--r--integration/snapshots/multiple-imports.js2
-rw-r--r--integration/snapshots/number-literal-bug.hmr.debug.js4
-rw-r--r--integration/snapshots/number-literal-bug.hmr.js4
-rw-r--r--integration/snapshots/optional-chain-with-function.hmr.debug.js4
-rw-r--r--integration/snapshots/optional-chain-with-function.hmr.js4
-rw-r--r--integration/snapshots/package-json-exports/index.debug.js2
-rw-r--r--integration/snapshots/package-json-exports/index.hmr.debug.js6
-rw-r--r--integration/snapshots/package-json-exports/index.hmr.js6
-rw-r--r--integration/snapshots/package-json-exports/index.js2
-rw-r--r--integration/snapshots/react-context-value-func.debug.tsx2
-rw-r--r--integration/snapshots/react-context-value-func.hmr.debug.tsx6
-rw-r--r--integration/snapshots/react-context-value-func.hmr.tsx6
-rw-r--r--integration/snapshots/react-context-value-func.tsx2
-rw-r--r--integration/snapshots/spread_with_key.debug.tsx2
-rw-r--r--integration/snapshots/spread_with_key.hmr.debug.tsx6
-rw-r--r--integration/snapshots/spread_with_key.hmr.tsx6
-rw-r--r--integration/snapshots/spread_with_key.tsx2
-rw-r--r--integration/snapshots/string-escapes.debug.js2
-rw-r--r--integration/snapshots/string-escapes.hmr.debug.js6
-rw-r--r--integration/snapshots/string-escapes.hmr.js6
-rw-r--r--integration/snapshots/string-escapes.js2
-rw-r--r--integration/snapshots/styledcomponents-output.debug.js2
-rw-r--r--integration/snapshots/styledcomponents-output.hmr.debug.js6
-rw-r--r--integration/snapshots/styledcomponents-output.hmr.js6
-rw-r--r--integration/snapshots/styledcomponents-output.js2
-rw-r--r--integration/snapshots/template-literal.hmr.debug.js4
-rw-r--r--integration/snapshots/template-literal.hmr.js4
-rw-r--r--integration/snapshots/ts-fallback-rewrite-works.hmr.debug.js4
-rw-r--r--integration/snapshots/ts-fallback-rewrite-works.hmr.js4
-rw-r--r--integration/snapshots/tsx-fallback-rewrite-works.hmr.debug.js4
-rw-r--r--integration/snapshots/tsx-fallback-rewrite-works.hmr.js4
-rw-r--r--integration/snapshots/type-only-imports.hmr.debug.ts4
-rw-r--r--integration/snapshots/type-only-imports.hmr.ts4
-rw-r--r--integration/snapshots/unicode-identifiers.hmr.debug.js4
-rw-r--r--integration/snapshots/unicode-identifiers.hmr.js4
-rw-r--r--integration/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js4
-rw-r--r--integration/snapshots/void-shouldnt-delete-call-expressions.hmr.js4
93 files changed, 695 insertions, 229 deletions
diff --git a/integration/bunjs-only-snippets/console-log.js b/integration/bunjs-only-snippets/console-log.js
new file mode 100644
index 000000000..e8aa200ac
--- /dev/null
+++ b/integration/bunjs-only-snippets/console-log.js
@@ -0,0 +1,58 @@
+console.log("Hello World!");
+console.log(123);
+console.log(-123);
+console.log(123.567);
+console.log(-123.567);
+console.log(true);
+console.log(false);
+console.log(null);
+console.log(undefined);
+console.log(Symbol("Symbol Description"));
+console.log(new Date(2021, 12, 30, 666, 777, 888, 999));
+console.log([123, 456, 789]);
+console.log({ a: 123, b: 456, c: 789 });
+console.log({
+ a: {
+ b: {
+ c: 123,
+ },
+ bacon: true,
+ },
+});
+
+console.log(new Promise(() => {}));
+
+class Foo {}
+
+console.log(() => {});
+console.log(Foo);
+console.log(new Foo());
+console.log(function foooo() {});
+
+console.log(/FooRegex/);
+
+console.error("uh oh");
+console.time("Check");
+
+console.log(
+ "Is it a bug or a feature that formatting numbers like %d is colored",
+ 123
+);
+console.log(globalThis);
+
+console.log(
+ "String %s should be 2nd word, 456 == %s and percent s %s == %s",
+ "123",
+ "456",
+ "%s",
+ "What",
+ "okay"
+);
+
+const infinteLoop = {
+ foo: {},
+ bar: {},
+};
+
+infinteLoop.bar = infinteLoop;
+console.log(infinteLoop, "am");
diff --git a/integration/bunjs-only-snippets/fetch.js b/integration/bunjs-only-snippets/fetch.js
new file mode 100644
index 000000000..cc83b5af4
--- /dev/null
+++ b/integration/bunjs-only-snippets/fetch.js
@@ -0,0 +1,14 @@
+import fs from "fs";
+
+const response = await fetch("http://example.com/");
+const text = await response.text();
+
+if (
+ fs.readFileSync(
+ import.meta.path.substring(0, import.meta.path.lastIndexOf("/")) +
+ "/fetch.js.txt",
+ "utf8"
+ ) !== text
+) {
+ throw new Error("Expected fetch.js.txt to match snapshot");
+}
diff --git a/integration/bunjs-only-snippets/fetch.js.txt b/integration/bunjs-only-snippets/fetch.js.txt
new file mode 100644
index 000000000..5a9b52fcf
--- /dev/null
+++ b/integration/bunjs-only-snippets/fetch.js.txt
@@ -0,0 +1,46 @@
+<!doctype html>
+<html>
+<head>
+ <title>Example Domain</title>
+
+ <meta charset="utf-8" />
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <style type="text/css">
+ body {
+ background-color: #f0f0f2;
+ margin: 0;
+ padding: 0;
+ font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
+
+ }
+ div {
+ width: 600px;
+ margin: 5em auto;
+ padding: 2em;
+ background-color: #fdfdff;
+ border-radius: 0.5em;
+ box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);
+ }
+ a:link, a:visited {
+ color: #38488f;
+ text-decoration: none;
+ }
+ @media (max-width: 700px) {
+ div {
+ margin: 0 auto;
+ width: auto;
+ }
+ }
+ </style>
+</head>
+
+<body>
+<div>
+ <h1>Example Domain</h1>
+ <p>This domain is for use in illustrative examples in documents. You may use this
+ domain in literature without prior coordination or asking for permission.</p>
+ <p><a href="https://www.iana.org/domains/example">More information...</a></p>
+</div>
+</body>
+</html>
diff --git a/integration/bunjs-only-snippets/fs-stream.js b/integration/bunjs-only-snippets/fs-stream.js
new file mode 100644
index 000000000..4b71c95b7
--- /dev/null
+++ b/integration/bunjs-only-snippets/fs-stream.js
@@ -0,0 +1,23 @@
+import { createReadStream, createWriteStream, readFileSync } from "fs";
+
+await new Promise((resolve, reject) => {
+ createReadStream("fs-stream.js")
+ .pipe(createWriteStream("/tmp/fs-stream.copy.js"))
+ .once("error", (err) => reject(err))
+ .once("finish", () => {
+ try {
+ const copied = readFileSync("/tmp/fs-stream.copy.js", "utf8");
+ const real = readFileSync("/tmp/fs-stream.js", "utf8");
+ if (copied !== real) {
+ reject(
+ new Error("fs-stream.js is not the same as fs-stream.copy.js")
+ );
+ return;
+ }
+
+ resolve(true);
+ } catch (err) {
+ reject(err);
+ }
+ });
+});
diff --git a/integration/bunjs-only-snippets/fs.test.js b/integration/bunjs-only-snippets/fs.test.js
new file mode 100644
index 000000000..4fc5c9e91
--- /dev/null
+++ b/integration/bunjs-only-snippets/fs.test.js
@@ -0,0 +1,35 @@
+import { describe, it, expect } from "bun:test";
+import {
+ mkdirSync,
+ existsSync,
+ readFileSync,
+ mkdtempSync,
+ writeFileSync,
+} from "node:fs";
+
+const tmp = mkdtempSync("fs-test");
+
+describe("mkdirSync", () => {
+ it("should create a directory", () => {
+ const tempdir = `${tmp}/1234/hi`;
+ expect(existsSync(tempdir)).toBe(false);
+ expect(tempdir.includes(mkdirSync(tempdir, { recursive: true }))).toBe(
+ true
+ );
+ expect(existsSync(tempdir)).toBe(true);
+ });
+});
+
+describe("readFileSync", () => {
+ it("works", () => {
+ const text = readFileSync(import.meta.dir + "/readFileSync.txt", "utf8");
+ expect(text).toBe("File read successfully");
+ });
+});
+
+describe("writeFileSync", () => {
+ it("works", () => {
+ const text = writeFileSync(`${tmp}/writeFileSync.txt`, "utf8");
+ expect(text).toBe("File read successfully");
+ });
+});
diff --git a/integration/bunjs-only-snippets/import-meta.test.js b/integration/bunjs-only-snippets/import-meta.test.js
new file mode 100644
index 000000000..226dd396b
--- /dev/null
+++ b/integration/bunjs-only-snippets/import-meta.test.js
@@ -0,0 +1,13 @@
+import { it, expect } from "bun:test";
+
+const { path, dir } = import.meta;
+
+it("import.meta.dir", () => {
+ expect(dir.endsWith("/bun/integration/bunjs-only-snippets")).toBe(true);
+});
+
+it("import.meta.path", () => {
+ expect(
+ path.endsWith("/bun/integration/bunjs-only-snippets/import-meta.test.js")
+ ).toBe(true);
+});
diff --git a/integration/bunjs-only-snippets/microtask.js b/integration/bunjs-only-snippets/microtask.js
new file mode 100644
index 000000000..c5acfd578
--- /dev/null
+++ b/integration/bunjs-only-snippets/microtask.js
@@ -0,0 +1,76 @@
+// You can verify this test is correct by copy pasting this into a browser's console and checking it doesn't throw an error.
+var run = 0;
+
+await new Promise((resolve, reject) => {
+ queueMicrotask(() => {
+ if (run++ != 0) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+ queueMicrotask(() => {
+ if (run++ != 3) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+ });
+ });
+ queueMicrotask(() => {
+ if (run++ != 1) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+ queueMicrotask(() => {
+ if (run++ != 4) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+
+ queueMicrotask(() => {
+ if (run++ != 6) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+ });
+ });
+ });
+ queueMicrotask(() => {
+ if (run++ != 2) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+ queueMicrotask(() => {
+ if (run++ != 5) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+
+ queueMicrotask(() => {
+ if (run++ != 7) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+ resolve(true);
+ });
+ });
+ });
+});
+
+{
+ var passed = false;
+ try {
+ queueMicrotask(1234);
+ } catch (exception) {
+ passed = exception instanceof TypeError;
+ }
+
+ if (!passed)
+ throw new Error(
+ "queueMicrotask should throw a TypeError if the argument is not a function"
+ );
+}
+
+{
+ var passed = false;
+ try {
+ queueMicrotask();
+ } catch (exception) {
+ passed = exception instanceof TypeError;
+ }
+
+ if (!passed)
+ throw new Error(
+ "queueMicrotask should throw a TypeError if the argument is empty"
+ );
+}
diff --git a/integration/bunjs-only-snippets/process-nexttick.js b/integration/bunjs-only-snippets/process-nexttick.js
new file mode 100644
index 000000000..337977c0a
--- /dev/null
+++ b/integration/bunjs-only-snippets/process-nexttick.js
@@ -0,0 +1,91 @@
+// You can verify this test is correct by copy pasting this into a browser's console and checking it doesn't throw an error.
+var run = 0;
+
+var queueMicrotask = process.nextTick;
+
+await new Promise((resolve, reject) => {
+ queueMicrotask(() => {
+ if (run++ != 0) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+ queueMicrotask(() => {
+ if (run++ != 3) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+ });
+ });
+ queueMicrotask(() => {
+ if (run++ != 1) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+ queueMicrotask(() => {
+ if (run++ != 4) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+
+ queueMicrotask(() => {
+ if (run++ != 6) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+ });
+ });
+ });
+ queueMicrotask(() => {
+ if (run++ != 2) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+ queueMicrotask(() => {
+ if (run++ != 5) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+
+ queueMicrotask(() => {
+ if (run++ != 7) {
+ reject(new Error("Microtask execution order is wrong: " + run));
+ }
+ resolve(true);
+ });
+ });
+ });
+});
+
+{
+ var passed = false;
+ try {
+ queueMicrotask(1234);
+ } catch (exception) {
+ passed = exception instanceof TypeError;
+ }
+
+ if (!passed)
+ throw new Error(
+ "queueMicrotask should throw a TypeError if the argument is not a function"
+ );
+}
+
+{
+ var passed = false;
+ try {
+ queueMicrotask();
+ } catch (exception) {
+ passed = exception instanceof TypeError;
+ }
+
+ if (!passed)
+ throw new Error(
+ "queueMicrotask should throw a TypeError if the argument is empty"
+ );
+}
+
+await new Promise((resolve, reject) => {
+ process.nextTick(
+ (first, second) => {
+ console.log(first, second);
+ if (first !== 12345 || second !== "hello")
+ reject(new Error("process.nextTick called with wrong arguments"));
+ resolve(true);
+ },
+ 12345,
+ "hello"
+ );
+});
diff --git a/integration/bunjs-only-snippets/process.js b/integration/bunjs-only-snippets/process.js
new file mode 100644
index 000000000..486d20f46
--- /dev/null
+++ b/integration/bunjs-only-snippets/process.js
@@ -0,0 +1,48 @@
+// this property isn't implemented yet but it should at least return a string
+const isNode = !process.isBun;
+
+if (!isNode && process.title !== "bun")
+ throw new Error("process.title is not 'bun'");
+
+if (typeof process.env.USER !== "string")
+ throw new Error("process.env is not an object");
+
+if (process.env.USER.length === 0)
+ throw new Error("process.env is missing a USER property");
+
+if (process.platform !== "darwin" && process.platform !== "linux")
+ throw new Error("process.platform is invalid");
+
+if (isNode) throw new Error("process.isBun is invalid");
+
+// partially to test it doesn't crash due to various strange types
+process.env.BACON = "yummy";
+if (process.env.BACON !== "yummy") {
+ throw new Error("process.env is not writable");
+}
+
+delete process.env.BACON;
+if (typeof process.env.BACON !== "undefined") {
+ throw new Error("process.env is not deletable");
+}
+
+process.env.BACON = "yummy";
+if (process.env.BACON !== "yummy") {
+ throw new Error("process.env is not re-writable");
+}
+
+if (JSON.parse(JSON.stringify(process.env)).BACON !== "yummy") {
+ throw new Error("process.env is not serializable");
+}
+
+if (typeof JSON.parse(JSON.stringify(process.env)).toJSON !== "undefined") {
+ throw new Error("process.env should call toJSON to hide its internal state");
+}
+
+var { env, ...proces } = process;
+console.log(JSON.stringify(proces, null, 2));
+console.log(proces);
+
+console.log("CWD", process.cwd());
+console.log("SET CWD", process.chdir("../"));
+console.log("CWD", process.cwd());
diff --git a/integration/bunjs-only-snippets/readFileSync.txt b/integration/bunjs-only-snippets/readFileSync.txt
new file mode 100644
index 000000000..ddc94b988
--- /dev/null
+++ b/integration/bunjs-only-snippets/readFileSync.txt
@@ -0,0 +1 @@
+File read successfully \ No newline at end of file
diff --git a/integration/bunjs-only-snippets/readdir.js b/integration/bunjs-only-snippets/readdir.js
new file mode 100644
index 000000000..18c111d0a
--- /dev/null
+++ b/integration/bunjs-only-snippets/readdir.js
@@ -0,0 +1,9 @@
+const { readdirSync } = require("fs");
+
+const count = parseInt(process.env.ITERATIONS || "1", 10) || 1;
+
+for (let i = 0; i < count; i++) {
+ readdirSync(".");
+}
+
+console.log(readdirSync("."));
diff --git a/integration/bunjs-only-snippets/sleep.js b/integration/bunjs-only-snippets/sleep.js
index 9a62201c5..080597424 100644
--- a/integration/bunjs-only-snippets/sleep.js
+++ b/integration/bunjs-only-snippets/sleep.js
@@ -1,7 +1,7 @@
-const interval = 0.5;
+const interval = 0.01;
const now = performance.now();
console.time("Slept");
-Bun.sleep(interval);
+Bun.sleepSync(interval);
const elapsed = performance.now() - now;
if (elapsed < interval) {
throw new Error("Didn't sleep");
diff --git a/integration/bunjs-only-snippets/some-fs.js b/integration/bunjs-only-snippets/some-fs.js
new file mode 100644
index 000000000..e6b31f162
--- /dev/null
+++ b/integration/bunjs-only-snippets/some-fs.js
@@ -0,0 +1,51 @@
+const { mkdirSync, existsSync } = require("fs");
+
+var performance = globalThis.performance;
+if (!performance) {
+ try {
+ performance = require("perf_hooks").performance;
+ } catch (e) {}
+}
+
+const count = parseInt(process.env.ITERATIONS || "1", 10) || 1;
+var tempdir = `/tmp/some-fs-test/dir/${Date.now()}/hi`;
+
+for (let i = 0; i < count; i++) {
+ tempdir += `/${i.toString(36)}`;
+}
+
+if (existsSync(tempdir)) {
+ throw new Error(
+ `existsSync reports ${tempdir} exists, but it probably does not`
+ );
+}
+
+var origTempDir = tempdir;
+var iterations = new Array(count * count).fill("");
+var total = 0;
+for (let i = 0; i < count; i++) {
+ for (let j = 0; j < count; j++) {
+ iterations[total++] = `${origTempDir}/${j.toString(36)}-${i.toString(36)}`;
+ }
+}
+tempdir = origTempDir;
+mkdirSync(origTempDir, { recursive: true });
+const recurse = { recursive: false };
+const start = performance.now();
+for (let i = 0; i < total; i++) {
+ mkdirSync(iterations[i], recurse);
+}
+
+console.log("MKDIR " + total + " depth took:", performance.now() - start, "ms");
+
+if (!existsSync(tempdir)) {
+ throw new Error(
+ "Expected directory to exist after mkdirSync, but it doesn't"
+ );
+}
+
+if (mkdirSync(tempdir, { recursive: true })) {
+ throw new Error(
+ "mkdirSync shouldn't return directory name on existing directories"
+ );
+}
diff --git a/integration/scripts/bun.js b/integration/scripts/bun.js
index d22785787..f8e4d2fa0 100644
--- a/integration/scripts/bun.js
+++ b/integration/scripts/bun.js
@@ -1,84 +1,85 @@
-import snippets from "./snippets.json";
+const fail = true;
+// import snippets from "./snippets.json";
-globalThis.console.assert = (condition, ...content) => {
- if (!condition) {
- throw new Error(content.join(" "));
- }
-};
-globalThis.getModuleScriptSrc = async (name) => {
- const response = await fetch(name, {
- cache: "force-cache",
- });
+// globalThis.console.assert = (condition, ...content) => {
+// if (!condition) {
+// throw new Error(content.join(" "));
+// }
+// };
+// globalThis.getModuleScriptSrc = async (name) => {
+// const response = await fetch(name, {
+// cache: "force-cache",
+// });
- if (response.ok) {
- return await response.text();
- } else {
- throw new Error(`Failed to get module script ${name}`);
- }
-};
+// if (response.ok) {
+// return await response.text();
+// } else {
+// throw new Error(`Failed to get module script ${name}`);
+// }
+// };
-globalThis.runTest = async (name) => {
- testSuccess = false;
- var Namespace = await import(name);
- var testFunction = Namespace.test;
+// globalThis.runTest = async (name) => {
+// testSuccess = false;
+// var Namespace = await import(name);
+// var testFunction = Namespace.test;
- if (
- !("test" in Namespace) &&
- "default" in Namespace &&
- typeof Namespace.default === "function"
- ) {
- Namespace = Namespace.default();
- testFunction = Namespace.test;
- }
+// if (
+// !("test" in Namespace) &&
+// "default" in Namespace &&
+// typeof Namespace.default === "function"
+// ) {
+// Namespace = Namespace.default();
+// testFunction = Namespace.test;
+// }
- if (!testFunction) {
- throw new Error("No test function found in " + name);
- }
+// if (!testFunction) {
+// throw new Error("No test function found in " + name);
+// }
- if (typeof testFunction !== "function") {
- throw new Error(
- `Expected (await import(\"${name}\"")) to have a test function.\nReceived: ${Object.keys(
- Namespace
- ).join(", ")} `
- );
- }
+// if (typeof testFunction !== "function") {
+// throw new Error(
+// `Expected (await import(\"${name}\"")) to have a test function.\nReceived: ${Object.keys(
+// Namespace
+// ).join(", ")} `
+// );
+// }
- if (globalThis.BUN_DEBUG_MODE) {
- try {
- await testFunction();
- if (!testSuccess) {
- throw new Error("Test failed");
- }
- } catch (exception) {
- console.error(exception);
- debugger;
- throw exception;
- }
- } else {
- await testFunction();
- if (!testSuccess) {
- throw new Error("Test failed");
- }
- }
-};
+// if (globalThis.BUN_DEBUG_MODE) {
+// try {
+// await testFunction();
+// if (!testSuccess) {
+// throw new Error("Test failed");
+// }
+// } catch (exception) {
+// console.error(exception);
+// debugger;
+// throw exception;
+// }
+// } else {
+// await testFunction();
+// if (!testSuccess) {
+// throw new Error("Test failed");
+// }
+// }
+// };
-var testSuccess = false;
-globalThis.testDone = () => {
- testSuccess = true;
-};
+// var testSuccess = false;
+// globalThis.testDone = () => {
+// testSuccess = true;
+// };
-let fail = 0;
-for (let snippet of snippets) {
- try {
- await runTest("../snippets/" + snippet.substring(1));
- console.log("✅", snippet);
- } catch (exception) {
- console.error(`❌ ${snippet}`);
- console.error(exception);
+// let fail = 0;
+// for (let snippet of snippets) {
+// try {
+// await runTest("../snippets/" + snippet.substring(1));
+// console.log("✅", snippet);
+// } catch (exception) {
+// console.error(`❌ ${snippet}`);
+// console.error(exception);
- fail++;
- }
-}
+// fail++;
+// }
+// }
if (fail) throw new Error(`❌ browser test failed (${fail})`);
diff --git a/integration/scripts/bun.lockb b/integration/scripts/bun.lockb
index 557f98ef6..1af6fbf69 100755
--- a/integration/scripts/bun.lockb
+++ b/integration/scripts/bun.lockb
Binary files differ
diff --git a/integration/snapshots/array-args-with-default-values.hmr.debug.js b/integration/snapshots/array-args-with-default-values.hmr.debug.js
index 58e8b47bf..f55cb290e 100644
--- a/integration/snapshots/array-args-with-default-values.hmr.debug.js
+++ b/integration/snapshots/array-args-with-default-values.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(true);
var hmr = new HMR(3474597122, "array-args-with-default-values.js"), exports = hmr.exports;
diff --git a/integration/snapshots/array-args-with-default-values.hmr.js b/integration/snapshots/array-args-with-default-values.hmr.js
index aae356eed..5c67d0c6c 100644
--- a/integration/snapshots/array-args-with-default-values.hmr.js
+++ b/integration/snapshots/array-args-with-default-values.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(3474597122, "array-args-with-default-values.js"), exports = hmr.exports;
diff --git a/integration/snapshots/bundled-entry-point.debug.js b/integration/snapshots/bundled-entry-point.debug.js
index 04f92d63a..0ffe267f1 100644
--- a/integration/snapshots/bundled-entry-point.debug.js
+++ b/integration/snapshots/bundled-entry-point.debug.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
var hello = null ?? "world";
diff --git a/integration/snapshots/bundled-entry-point.hmr.debug.js b/integration/snapshots/bundled-entry-point.hmr.debug.js
index fd211daa2..4b62d3dbc 100644
--- a/integration/snapshots/bundled-entry-point.hmr.debug.js
+++ b/integration/snapshots/bundled-entry-point.hmr.debug.js
@@ -1,12 +1,12 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
Bun.activate(true);
diff --git a/integration/snapshots/bundled-entry-point.hmr.js b/integration/snapshots/bundled-entry-point.hmr.js
index f3008327a..b04c38495 100644
--- a/integration/snapshots/bundled-entry-point.hmr.js
+++ b/integration/snapshots/bundled-entry-point.hmr.js
@@ -1,12 +1,12 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
Bun.activate(false);
diff --git a/integration/snapshots/bundled-entry-point.js b/integration/snapshots/bundled-entry-point.js
index 04f92d63a..0ffe267f1 100644
--- a/integration/snapshots/bundled-entry-point.js
+++ b/integration/snapshots/bundled-entry-point.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
var hello = null ?? "world";
diff --git a/integration/snapshots/caught-require.debug.js b/integration/snapshots/caught-require.debug.js
index 690ec4db5..f4f12c29d 100644
--- a/integration/snapshots/caught-require.debug.js
+++ b/integration/snapshots/caught-require.debug.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
try {
require((() => { throw (new Error(`Cannot require module '"this-package-should-not-exist"'`)); } )());
diff --git a/integration/snapshots/caught-require.hmr.debug.js b/integration/snapshots/caught-require.hmr.debug.js
index 25883fac7..2cd9f386d 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/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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 ea7bccc2c..c57c6f90e 100644
--- a/integration/snapshots/caught-require.hmr.js
+++ b/integration/snapshots/caught-require.hmr.js
@@ -1,12 +1,12 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(2398506918, "caught-require.js"), exports = hmr.exports;
diff --git a/integration/snapshots/caught-require.js b/integration/snapshots/caught-require.js
index 690ec4db5..f4f12c29d 100644
--- a/integration/snapshots/caught-require.js
+++ b/integration/snapshots/caught-require.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
try {
require((() => { throw (new Error(`Cannot require module '"this-package-should-not-exist"'`)); } )());
diff --git a/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.debug.js b/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.debug.js
index 2ca15542e..c5aa62729 100644
--- a/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.debug.js
+++ b/integration/snapshots/cjs-transform-shouldnt-have-static-imports-in-cjs-function.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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";
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 ef0bd004e..82d8617f0 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,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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";
diff --git a/integration/snapshots/code-simplification-neql-define.hmr.debug.js b/integration/snapshots/code-simplification-neql-define.hmr.debug.js
index 80aedf8bb..860c514ba 100644
--- a/integration/snapshots/code-simplification-neql-define.hmr.debug.js
+++ b/integration/snapshots/code-simplification-neql-define.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(true);
var hmr = new HMR(726376257, "code-simplification-neql-define.js"), exports = hmr.exports;
diff --git a/integration/snapshots/code-simplification-neql-define.hmr.js b/integration/snapshots/code-simplification-neql-define.hmr.js
index 1e517c533..9fdd73d14 100644
--- a/integration/snapshots/code-simplification-neql-define.hmr.js
+++ b/integration/snapshots/code-simplification-neql-define.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(726376257, "code-simplification-neql-define.js"), exports = hmr.exports;
diff --git a/integration/snapshots/custom-emotion-jsx/file.debug.jsx b/integration/snapshots/custom-emotion-jsx/file.debug.jsx
index b6be3371f..97987ff3f 100644
--- a/integration/snapshots/custom-emotion-jsx/file.debug.jsx
+++ b/integration/snapshots/custom-emotion-jsx/file.debug.jsx
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} 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";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/custom-emotion-jsx/file.hmr.debug.jsx b/integration/snapshots/custom-emotion-jsx/file.hmr.debug.jsx
index c595a5957..bd299b2a8 100644
--- a/integration/snapshots/custom-emotion-jsx/file.hmr.debug.jsx
+++ b/integration/snapshots/custom-emotion-jsx/file.hmr.debug.jsx
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} 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";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/custom-emotion-jsx/file.hmr.jsx b/integration/snapshots/custom-emotion-jsx/file.hmr.jsx
index da190ef0d..ffc4f8c96 100644
--- a/integration/snapshots/custom-emotion-jsx/file.hmr.jsx
+++ b/integration/snapshots/custom-emotion-jsx/file.hmr.jsx
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} 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";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/custom-emotion-jsx/file.jsx b/integration/snapshots/custom-emotion-jsx/file.jsx
index b6be3371f..97987ff3f 100644
--- a/integration/snapshots/custom-emotion-jsx/file.jsx
+++ b/integration/snapshots/custom-emotion-jsx/file.jsx
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} 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";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/export.hmr.debug.js b/integration/snapshots/export.hmr.debug.js
index b5d3e0ad1..ed800afa1 100644
--- a/integration/snapshots/export.hmr.debug.js
+++ b/integration/snapshots/export.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import what from "http://localhost:8080/_auth.js";
import * as where from "http://localhost:8080/_auth.js";
Bun.activate(true);
diff --git a/integration/snapshots/export.hmr.js b/integration/snapshots/export.hmr.js
index 6088ffd77..a7d1f9b31 100644
--- a/integration/snapshots/export.hmr.js
+++ b/integration/snapshots/export.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import what from "http://localhost:8080/_auth.js";
import * as where from "http://localhost:8080/_auth.js";
Bun.activate(false);
diff --git a/integration/snapshots/forbid-in-is-correct.hmr.debug.js b/integration/snapshots/forbid-in-is-correct.hmr.debug.js
index 7014ea1e8..e38cadb7f 100644
--- a/integration/snapshots/forbid-in-is-correct.hmr.debug.js
+++ b/integration/snapshots/forbid-in-is-correct.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(true);
var hmr = new HMR(346837007, "forbid-in-is-correct.js"), exports = hmr.exports;
diff --git a/integration/snapshots/forbid-in-is-correct.hmr.js b/integration/snapshots/forbid-in-is-correct.hmr.js
index bd20b7b42..e44263095 100644
--- a/integration/snapshots/forbid-in-is-correct.hmr.js
+++ b/integration/snapshots/forbid-in-is-correct.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(346837007, "forbid-in-is-correct.js"), exports = hmr.exports;
diff --git a/integration/snapshots/global-is-remapped-to-globalThis.hmr.debug.js b/integration/snapshots/global-is-remapped-to-globalThis.hmr.debug.js
index dace8fa7a..c2a6edc5f 100644
--- a/integration/snapshots/global-is-remapped-to-globalThis.hmr.debug.js
+++ b/integration/snapshots/global-is-remapped-to-globalThis.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(true);
var hmr = new HMR(713665787, "global-is-remapped-to-globalThis.js"), exports = hmr.exports;
diff --git a/integration/snapshots/global-is-remapped-to-globalThis.hmr.js b/integration/snapshots/global-is-remapped-to-globalThis.hmr.js
index a5a3723a6..d1dd77003 100644
--- a/integration/snapshots/global-is-remapped-to-globalThis.hmr.js
+++ b/integration/snapshots/global-is-remapped-to-globalThis.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(713665787, "global-is-remapped-to-globalThis.js"), exports = hmr.exports;
diff --git a/integration/snapshots/jsx-entities.debug.jsx b/integration/snapshots/jsx-entities.debug.jsx
index cfaf14c10..63128a105 100644
--- a/integration/snapshots/jsx-entities.debug.jsx
+++ b/integration/snapshots/jsx-entities.debug.jsx
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/jsx-entities.hmr.debug.jsx b/integration/snapshots/jsx-entities.hmr.debug.jsx
index 73f00bdef..5427483d3 100644
--- a/integration/snapshots/jsx-entities.hmr.debug.jsx
+++ b/integration/snapshots/jsx-entities.hmr.debug.jsx
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/jsx-entities.hmr.jsx b/integration/snapshots/jsx-entities.hmr.jsx
index 2ec3158d6..fee5ba0f3 100644
--- a/integration/snapshots/jsx-entities.hmr.jsx
+++ b/integration/snapshots/jsx-entities.hmr.jsx
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/jsx-entities.jsx b/integration/snapshots/jsx-entities.jsx
index cfaf14c10..63128a105 100644
--- a/integration/snapshots/jsx-entities.jsx
+++ b/integration/snapshots/jsx-entities.jsx
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/jsx-spacing.debug.jsx b/integration/snapshots/jsx-spacing.debug.jsx
index 0b1914722..29c8995d3 100644
--- a/integration/snapshots/jsx-spacing.debug.jsx
+++ b/integration/snapshots/jsx-spacing.debug.jsx
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/jsx-spacing.hmr.debug.jsx b/integration/snapshots/jsx-spacing.hmr.debug.jsx
index 8d45ec417..462469ba5 100644
--- a/integration/snapshots/jsx-spacing.hmr.debug.jsx
+++ b/integration/snapshots/jsx-spacing.hmr.debug.jsx
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/jsx-spacing.hmr.jsx b/integration/snapshots/jsx-spacing.hmr.jsx
index d41bc53c7..a17970a7d 100644
--- a/integration/snapshots/jsx-spacing.hmr.jsx
+++ b/integration/snapshots/jsx-spacing.hmr.jsx
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/jsx-spacing.jsx b/integration/snapshots/jsx-spacing.jsx
index 0b1914722..29c8995d3 100644
--- a/integration/snapshots/jsx-spacing.jsx
+++ b/integration/snapshots/jsx-spacing.jsx
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/latin1-chars-in-regexp.hmr.debug.js b/integration/snapshots/latin1-chars-in-regexp.hmr.debug.js
index f0e79c488..db7f60ee3 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/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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 03b9344e4..db6eec375 100644
--- a/integration/snapshots/latin1-chars-in-regexp.hmr.js
+++ b/integration/snapshots/latin1-chars-in-regexp.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(1430071586, "latin1-chars-in-regexp.js"), exports = hmr.exports;
diff --git a/integration/snapshots/lodash-regexp.debug.js b/integration/snapshots/lodash-regexp.debug.js
index 6e0e6190a..dd6bca362 100644
--- a/integration/snapshots/lodash-regexp.debug.js
+++ b/integration/snapshots/lodash-regexp.debug.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as $60f52dc2 from "http://localhost:8080/node_modules/lodash/lodash.js";
var { shuffle} = require($60f52dc2);
export function test() {
diff --git a/integration/snapshots/lodash-regexp.hmr.debug.js b/integration/snapshots/lodash-regexp.hmr.debug.js
index 3030e47c6..a66de3069 100644
--- a/integration/snapshots/lodash-regexp.hmr.debug.js
+++ b/integration/snapshots/lodash-regexp.hmr.debug.js
@@ -1,12 +1,12 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as $60f52dc2 from "http://localhost:8080/node_modules/lodash/lodash.js";
var { shuffle} = require($60f52dc2);
Bun.activate(true);
diff --git a/integration/snapshots/lodash-regexp.hmr.js b/integration/snapshots/lodash-regexp.hmr.js
index cd9ca40f7..357568704 100644
--- a/integration/snapshots/lodash-regexp.hmr.js
+++ b/integration/snapshots/lodash-regexp.hmr.js
@@ -1,12 +1,12 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as $60f52dc2 from "http://localhost:8080/node_modules/lodash/lodash.js";
var { shuffle} = require($60f52dc2);
Bun.activate(false);
diff --git a/integration/snapshots/lodash-regexp.js b/integration/snapshots/lodash-regexp.js
index 6e0e6190a..dd6bca362 100644
--- a/integration/snapshots/lodash-regexp.js
+++ b/integration/snapshots/lodash-regexp.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as $60f52dc2 from "http://localhost:8080/node_modules/lodash/lodash.js";
var { shuffle} = require($60f52dc2);
export function test() {
diff --git a/integration/snapshots/multiple-imports.debug.js b/integration/snapshots/multiple-imports.debug.js
index a98366885..dcf7b6231 100644
--- a/integration/snapshots/multiple-imports.debug.js
+++ b/integration/snapshots/multiple-imports.debug.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/multiple-imports.hmr.debug.js b/integration/snapshots/multiple-imports.hmr.debug.js
index 3c40e88a6..78cf5bd0e 100644
--- a/integration/snapshots/multiple-imports.hmr.debug.js
+++ b/integration/snapshots/multiple-imports.hmr.debug.js
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/multiple-imports.hmr.js b/integration/snapshots/multiple-imports.hmr.js
index 03cfe9d1a..4f57d33b8 100644
--- a/integration/snapshots/multiple-imports.hmr.js
+++ b/integration/snapshots/multiple-imports.hmr.js
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/multiple-imports.js b/integration/snapshots/multiple-imports.js
index a98366885..dcf7b6231 100644
--- a/integration/snapshots/multiple-imports.js
+++ b/integration/snapshots/multiple-imports.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/number-literal-bug.hmr.debug.js b/integration/snapshots/number-literal-bug.hmr.debug.js
index e9d9f7b06..96e0dc96c 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/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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 87cd08433..1d128538c 100644
--- a/integration/snapshots/number-literal-bug.hmr.js
+++ b/integration/snapshots/number-literal-bug.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(583570002, "number-literal-bug.js"), exports = hmr.exports;
diff --git a/integration/snapshots/optional-chain-with-function.hmr.debug.js b/integration/snapshots/optional-chain-with-function.hmr.debug.js
index acd656901..f4c7a3641 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/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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 91666bf96..780c8b425 100644
--- a/integration/snapshots/optional-chain-with-function.hmr.js
+++ b/integration/snapshots/optional-chain-with-function.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(3608848620, "optional-chain-with-function.js"), exports = hmr.exports;
diff --git a/integration/snapshots/package-json-exports/index.debug.js b/integration/snapshots/package-json-exports/index.debug.js
index 882f9d489..cfeee9a4a 100644
--- a/integration/snapshots/package-json-exports/index.debug.js
+++ b/integration/snapshots/package-json-exports/index.debug.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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";
diff --git a/integration/snapshots/package-json-exports/index.hmr.debug.js b/integration/snapshots/package-json-exports/index.hmr.debug.js
index 26be6ac7b..8c23e74fc 100644
--- a/integration/snapshots/package-json-exports/index.hmr.debug.js
+++ b/integration/snapshots/package-json-exports/index.hmr.debug.js
@@ -1,12 +1,12 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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";
diff --git a/integration/snapshots/package-json-exports/index.hmr.js b/integration/snapshots/package-json-exports/index.hmr.js
index d4e1aff18..eaaad675c 100644
--- a/integration/snapshots/package-json-exports/index.hmr.js
+++ b/integration/snapshots/package-json-exports/index.hmr.js
@@ -1,12 +1,12 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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";
diff --git a/integration/snapshots/package-json-exports/index.js b/integration/snapshots/package-json-exports/index.js
index 882f9d489..cfeee9a4a 100644
--- a/integration/snapshots/package-json-exports/index.js
+++ b/integration/snapshots/package-json-exports/index.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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";
diff --git a/integration/snapshots/react-context-value-func.debug.tsx b/integration/snapshots/react-context-value-func.debug.tsx
index 5d151afba..6ce4b09db 100644
--- a/integration/snapshots/react-context-value-func.debug.tsx
+++ b/integration/snapshots/react-context-value-func.debug.tsx
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/react-context-value-func.hmr.debug.tsx b/integration/snapshots/react-context-value-func.hmr.debug.tsx
index 9280a638d..4632802d4 100644
--- a/integration/snapshots/react-context-value-func.hmr.debug.tsx
+++ b/integration/snapshots/react-context-value-func.hmr.debug.tsx
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/react-context-value-func.hmr.tsx b/integration/snapshots/react-context-value-func.hmr.tsx
index c6313661e..5ad188422 100644
--- a/integration/snapshots/react-context-value-func.hmr.tsx
+++ b/integration/snapshots/react-context-value-func.hmr.tsx
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/react-context-value-func.tsx b/integration/snapshots/react-context-value-func.tsx
index 5d151afba..6ce4b09db 100644
--- a/integration/snapshots/react-context-value-func.tsx
+++ b/integration/snapshots/react-context-value-func.tsx
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/spread_with_key.debug.tsx b/integration/snapshots/spread_with_key.debug.tsx
index cb079bb95..25f380a8d 100644
--- a/integration/snapshots/spread_with_key.debug.tsx
+++ b/integration/snapshots/spread_with_key.debug.tsx
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/spread_with_key.hmr.debug.tsx b/integration/snapshots/spread_with_key.hmr.debug.tsx
index 7f5076f1a..78754d7dd 100644
--- a/integration/snapshots/spread_with_key.hmr.debug.tsx
+++ b/integration/snapshots/spread_with_key.hmr.debug.tsx
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/spread_with_key.hmr.tsx b/integration/snapshots/spread_with_key.hmr.tsx
index 4b5d9ccf6..9e4da7bf4 100644
--- a/integration/snapshots/spread_with_key.hmr.tsx
+++ b/integration/snapshots/spread_with_key.hmr.tsx
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/spread_with_key.tsx b/integration/snapshots/spread_with_key.tsx
index cb079bb95..25f380a8d 100644
--- a/integration/snapshots/spread_with_key.tsx
+++ b/integration/snapshots/spread_with_key.tsx
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/string-escapes.debug.js b/integration/snapshots/string-escapes.debug.js
index af9c53abf..9feb91e50 100644
--- a/integration/snapshots/string-escapes.debug.js
+++ b/integration/snapshots/string-escapes.debug.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/string-escapes.hmr.debug.js b/integration/snapshots/string-escapes.hmr.debug.js
index 19045846a..923c8b8b3 100644
--- a/integration/snapshots/string-escapes.hmr.debug.js
+++ b/integration/snapshots/string-escapes.hmr.debug.js
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/string-escapes.hmr.js b/integration/snapshots/string-escapes.hmr.js
index e1f38c7af..2ffed5df4 100644
--- a/integration/snapshots/string-escapes.hmr.js
+++ b/integration/snapshots/string-escapes.hmr.js
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/string-escapes.js b/integration/snapshots/string-escapes.js
index af9c53abf..9feb91e50 100644
--- a/integration/snapshots/string-escapes.js
+++ b/integration/snapshots/string-escapes.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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);
diff --git a/integration/snapshots/styledcomponents-output.debug.js b/integration/snapshots/styledcomponents-output.debug.js
index b99d434da..7dcaa3d08 100644
--- a/integration/snapshots/styledcomponents-output.debug.js
+++ b/integration/snapshots/styledcomponents-output.debug.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/styledcomponents-output.hmr.debug.js b/integration/snapshots/styledcomponents-output.hmr.debug.js
index dc9e2de7d..cecb4780e 100644
--- a/integration/snapshots/styledcomponents-output.hmr.debug.js
+++ b/integration/snapshots/styledcomponents-output.hmr.debug.js
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/styledcomponents-output.hmr.js b/integration/snapshots/styledcomponents-output.hmr.js
index 5f0d525a4..c9bd340d1 100644
--- a/integration/snapshots/styledcomponents-output.hmr.js
+++ b/integration/snapshots/styledcomponents-output.hmr.js
@@ -1,12 +1,12 @@
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/styledcomponents-output.js b/integration/snapshots/styledcomponents-output.js
index b99d434da..7dcaa3d08 100644
--- a/integration/snapshots/styledcomponents-output.js
+++ b/integration/snapshots/styledcomponents-output.js
@@ -1,6 +1,6 @@
import {
__require as require
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
var jsx = require(JSX).jsxDEV;
diff --git a/integration/snapshots/template-literal.hmr.debug.js b/integration/snapshots/template-literal.hmr.debug.js
index af93a6fa5..a603ab705 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/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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 d27857c77..b237b0ec5 100644
--- a/integration/snapshots/template-literal.hmr.js
+++ b/integration/snapshots/template-literal.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(2201713056, "template-literal.js"), exports = hmr.exports;
diff --git a/integration/snapshots/ts-fallback-rewrite-works.hmr.debug.js b/integration/snapshots/ts-fallback-rewrite-works.hmr.debug.js
index c90ac6d25..1b2c6fbf2 100644
--- a/integration/snapshots/ts-fallback-rewrite-works.hmr.debug.js
+++ b/integration/snapshots/ts-fallback-rewrite-works.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(true);
var hmr = new HMR(421762902, "ts-fallback-rewrite-works.ts"), exports = hmr.exports;
diff --git a/integration/snapshots/ts-fallback-rewrite-works.hmr.js b/integration/snapshots/ts-fallback-rewrite-works.hmr.js
index e728c5f14..577275c99 100644
--- a/integration/snapshots/ts-fallback-rewrite-works.hmr.js
+++ b/integration/snapshots/ts-fallback-rewrite-works.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(421762902, "ts-fallback-rewrite-works.ts"), exports = hmr.exports;
diff --git a/integration/snapshots/tsx-fallback-rewrite-works.hmr.debug.js b/integration/snapshots/tsx-fallback-rewrite-works.hmr.debug.js
index d3aa0919a..b9155a35f 100644
--- a/integration/snapshots/tsx-fallback-rewrite-works.hmr.debug.js
+++ b/integration/snapshots/tsx-fallback-rewrite-works.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(true);
var hmr = new HMR(2117426367, "tsx-fallback-rewrite-works.tsx"), exports = hmr.exports;
diff --git a/integration/snapshots/tsx-fallback-rewrite-works.hmr.js b/integration/snapshots/tsx-fallback-rewrite-works.hmr.js
index 3f2f754e2..98449f355 100644
--- a/integration/snapshots/tsx-fallback-rewrite-works.hmr.js
+++ b/integration/snapshots/tsx-fallback-rewrite-works.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(2117426367, "tsx-fallback-rewrite-works.tsx"), exports = hmr.exports;
diff --git a/integration/snapshots/type-only-imports.hmr.debug.ts b/integration/snapshots/type-only-imports.hmr.debug.ts
index c647843ea..c6ddfa45f 100644
--- a/integration/snapshots/type-only-imports.hmr.debug.ts
+++ b/integration/snapshots/type-only-imports.hmr.debug.ts
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(true);
var hmr = new HMR(650094581, "type-only-imports.ts"), exports = hmr.exports;
diff --git a/integration/snapshots/type-only-imports.hmr.ts b/integration/snapshots/type-only-imports.hmr.ts
index 84740d0d9..4c3d9b9bb 100644
--- a/integration/snapshots/type-only-imports.hmr.ts
+++ b/integration/snapshots/type-only-imports.hmr.ts
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(650094581, "type-only-imports.ts"), exports = hmr.exports;
diff --git a/integration/snapshots/unicode-identifiers.hmr.debug.js b/integration/snapshots/unicode-identifiers.hmr.debug.js
index 894cd0fe5..81017ff5c 100644
--- a/integration/snapshots/unicode-identifiers.hmr.debug.js
+++ b/integration/snapshots/unicode-identifiers.hmr.debug.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(true);
var hmr = new HMR(1398361736, "unicode-identifiers.js"), exports = hmr.exports;
diff --git a/integration/snapshots/unicode-identifiers.hmr.js b/integration/snapshots/unicode-identifiers.hmr.js
index f43fef51c..d85c42c72 100644
--- a/integration/snapshots/unicode-identifiers.hmr.js
+++ b/integration/snapshots/unicode-identifiers.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(1398361736, "unicode-identifiers.js"), exports = hmr.exports;
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 ebc46c9ba..fa25488ec 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/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
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 239b40fbd..fb14bc53a 100644
--- a/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.js
+++ b/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.js
@@ -1,9 +1,9 @@
import {
__HMRModule as HMR
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
import {
__HMRClient as Bun
-} from "http://localhost:8080/__runtime.js";
+} from "http://localhost:8080/bun:runtime";
Bun.activate(false);
var hmr = new HMR(635901064, "void-shouldnt-delete-call-expressions.js"), exports = hmr.exports;