aboutsummaryrefslogtreecommitdiff
path: root/integration
diff options
context:
space:
mode:
Diffstat (limited to 'integration')
-rw-r--r--integration/snapshots/export-default-module-hot.hmr.js32
-rw-r--r--integration/snapshots/export-default-module-hot.js21
2 files changed, 28 insertions, 25 deletions
diff --git a/integration/snapshots/export-default-module-hot.hmr.js b/integration/snapshots/export-default-module-hot.hmr.js
index e0d02d271..39d1c3095 100644
--- a/integration/snapshots/export-default-module-hot.hmr.js
+++ b/integration/snapshots/export-default-module-hot.hmr.js
@@ -1,19 +1,35 @@
import {
-__cJS2eSM
+__HMRClient as Bun
+} from "http://localhost:8080/bun:wrap";
+Bun.activate(false);
+
+import {
+__FastRefreshModule as FastHMR
} from "http://localhost:8080/bun:wrap";
import {
-__exportDefault
+__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-export default __cJS2eSM(function(module, exports) {
- __exportDefault(module.exports, module.id);
+var hmr = new FastHMR(2909748314, "export-default-module-hot.js", FastRefresh), exports = hmr.exports;
+(hmr._load = function() {
+ var export_default_module_hot_default = typeof module !== "undefined" && module.id;
function test() {
testDone(import.meta.url);
}
- Object.defineProperty(module.exports,"test",{get: () => test, enumerable: true, configurable: true});
-}, "export-default-module-hot.js");
-
-
+ hmr.exportAll({
+ default: () => export_default_module_hot_default,
+ test: () => test
+ });
+})();
+var $$hmr_default = hmr.exports.default, $$hmr_test = hmr.exports.test;
+hmr._update = function(exports) {
+ $$hmr_default = exports.default;
+ $$hmr_test = exports.test;
+};
+export {
+ $$hmr_default as default,
+ $$hmr_test as test
+};
//# sourceMappingURL=http://localhost:8080/export-default-module-hot.js.map
diff --git a/integration/snapshots/export-default-module-hot.js b/integration/snapshots/export-default-module-hot.js
index e0d02d271..a9de546d5 100644
--- a/integration/snapshots/export-default-module-hot.js
+++ b/integration/snapshots/export-default-module-hot.js
@@ -1,19 +1,6 @@
-import {
-__cJS2eSM
-} from "http://localhost:8080/bun:wrap";
-import {
-__exportDefault
-} from "http://localhost:8080/bun:wrap";
-export default __cJS2eSM(function(module, exports) {
- __exportDefault(module.exports, module.id);
-
- function test() {
- testDone(import.meta.url);
- }
- Object.defineProperty(module.exports,"test",{get: () => test, enumerable: true, configurable: true});
-}, "export-default-module-hot.js");
-
-
-
+export default typeof module !== "undefined" && module.id;
+export function test() {
+ testDone(import.meta.url);
+}
//# sourceMappingURL=http://localhost:8080/export-default-module-hot.js.map