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/react-context-value-func.hmr.debug.tsx | |
parent | ea241fcec7add6187ec915ed0b3983f3be0529f9 (diff) | |
download | bun-683b171c3ffc54957e1f02952938ff010fdcbbe0.tar.gz bun-683b171c3ffc54957e1f02952938ff010fdcbbe0.tar.zst bun-683b171c3ffc54957e1f02952938ff010fdcbbe0.zip |
:camera:
Diffstat (limited to 'integration/snapshots/react-context-value-func.hmr.debug.tsx')
-rw-r--r-- | integration/snapshots/react-context-value-func.hmr.debug.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/integration/snapshots/react-context-value-func.hmr.debug.tsx b/integration/snapshots/react-context-value-func.hmr.debug.tsx index 76d5214d3..d17a8fa88 100644 --- a/integration/snapshots/react-context-value-func.hmr.debug.tsx +++ b/integration/snapshots/react-context-value-func.hmr.debug.tsx @@ -2,10 +2,12 @@ import { __FastRefreshRuntime as FastRefresh } from "http://localhost:8080/bun:wrap"; import { -__require as require +__HMRClient as Bun } from "http://localhost:8080/bun:wrap"; +Bun.activate(true); + import { -__HMRClient as Bun +__require as require } from "http://localhost:8080/bun:wrap"; import { __FastRefreshModule as FastHMR @@ -16,9 +18,8 @@ var jsx = require(JSX).jsxDEV; import * as $bbcd215f from "http://localhost:8080/node_modules/react/index.js"; var { default: React} = require($bbcd215f); -Bun.activate(true); - var hmr = new FastHMR(3514348331, "react-context-value-func.tsx", FastRefresh), exports = hmr.exports; + (hmr._load = function() { const Context = React.createContext({}); const ContextProvider = ({ children }) => { |