diff options
author | 2021-09-23 22:01:34 -0700 | |
---|---|---|
committer | 2021-09-23 22:01:34 -0700 | |
commit | 4bb41b95a826892107b7ff3ff610d23d5afa96b6 (patch) | |
tree | 439f273d09ae8fa845eaec24c9e436c8fd244be3 /integration/snapshots/tsx-fallback-rewrite-works.js | |
parent | f78f4854a4e474a08023841f4714f0cd3774126b (diff) | |
download | bun-4bb41b95a826892107b7ff3ff610d23d5afa96b6.tar.gz bun-4bb41b95a826892107b7ff3ff610d23d5afa96b6.tar.zst bun-4bb41b95a826892107b7ff3ff610d23d5afa96b6.zip |
:camera:
Diffstat (limited to 'integration/snapshots/tsx-fallback-rewrite-works.js')
-rw-r--r-- | integration/snapshots/tsx-fallback-rewrite-works.js | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/integration/snapshots/tsx-fallback-rewrite-works.js b/integration/snapshots/tsx-fallback-rewrite-works.js index d3aa0919a..a4e489f28 100644 --- a/integration/snapshots/tsx-fallback-rewrite-works.js +++ b/integration/snapshots/tsx-fallback-rewrite-works.js @@ -1,25 +1,3 @@ -import { -__HMRModule as HMR -} from "http://localhost:8080/__runtime.js"; -import { -__HMRClient as Bun -} from "http://localhost:8080/__runtime.js"; -Bun.activate(true); - -var hmr = new HMR(2117426367, "tsx-fallback-rewrite-works.tsx"), exports = hmr.exports; -(hmr._load = function() { - function test() { - 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 -}; +export function test() { + return testDone(import.meta.url); +} |