diff options
author | 2022-04-23 03:15:27 -0700 | |
---|---|---|
committer | 2022-04-23 03:15:27 -0700 | |
commit | 683b171c3ffc54957e1f02952938ff010fdcbbe0 (patch) | |
tree | 9ff186957214f6bccc696f5093cb88b0e39a40aa /integration/snapshots/export-default-module-hot.hmr.debug.js | |
parent | ea241fcec7add6187ec915ed0b3983f3be0529f9 (diff) | |
download | bun-683b171c3ffc54957e1f02952938ff010fdcbbe0.tar.gz bun-683b171c3ffc54957e1f02952938ff010fdcbbe0.tar.zst bun-683b171c3ffc54957e1f02952938ff010fdcbbe0.zip |
:camera:
Diffstat (limited to 'integration/snapshots/export-default-module-hot.hmr.debug.js')
-rw-r--r-- | integration/snapshots/export-default-module-hot.hmr.debug.js | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/integration/snapshots/export-default-module-hot.hmr.debug.js b/integration/snapshots/export-default-module-hot.hmr.debug.js index e0d02d271..6230c29a1 100644 --- a/integration/snapshots/export-default-module-hot.hmr.debug.js +++ b/integration/snapshots/export-default-module-hot.hmr.debug.js @@ -1,19 +1,35 @@ import { -__cJS2eSM +__HMRClient as Bun +} from "http://localhost:8080/bun:wrap"; +Bun.activate(true); + +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 |