aboutsummaryrefslogtreecommitdiff
path: root/integration/snapshots/multiple-imports.hmr.js
diff options
context:
space:
mode:
Diffstat (limited to 'integration/snapshots/multiple-imports.hmr.js')
-rw-r--r--integration/snapshots/multiple-imports.hmr.js46
1 files changed, 46 insertions, 0 deletions
diff --git a/integration/snapshots/multiple-imports.hmr.js b/integration/snapshots/multiple-imports.hmr.js
new file mode 100644
index 000000000..727907e62
--- /dev/null
+++ b/integration/snapshots/multiple-imports.hmr.js
@@ -0,0 +1,46 @@
+import {
+__HMRClient as Bun
+} from "http://localhost:8080/__runtime.js";
+import {
+__require as require
+} from "http://localhost:8080/__runtime.js";
+import {
+__HMRModule as HMR
+} from "http://localhost:8080/__runtime.js";
+import * as JSX from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js";
+import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js";
+var JSXClassic = require($bbcd215f);
+var jsx = require(JSX).jsxDEV, fileName = "multiple-imports.js", JSXFrag = require(JSX, JSXClassic).Fragment;
+
+var { default: React} = require($bbcd215f);
+var { default: React2} = require($bbcd215f);
+Bun.activate(false);
+
+var hmr = new HMR(2165509932, "multiple-imports.js"), exports = hmr.exports;
+(hmr._load = function() {
+ const bacon = React;
+ const bacon2 = jsx(JSXFrag, {
+ children: ["hello"]
+ }, undefined, true, {
+ fileName,
+ lineNumber: 92
+ }, this);
+ function test() {
+ console.assert(bacon === React);
+ console.assert(bacon === React2);
+ console.assert(typeof bacon2 !== "undefined");
+ console.assert(React.isValidElement(bacon2));
+ return testDone(import.meta.url);
+ }
+ hmr.exportAll({
+ test: () => test
+ });
+})();
+var $$hmr_test = hmr.exports.test;
+hmr._update = function(exports) {
+ $$hmr_test = exports.test;
+};
+
+export {
+ $$hmr_test as test
+};