import { __FastRefreshRuntime as FastRefresh } from "http://localhost:8080/bun:wrap"; import { __HMRClient as Bun } from "http://localhost:8080/bun:wrap"; Bun.activate(false); import { __require as require } from "http://localhost:8080/bun:wrap"; import { __FastRefreshModule as FastHMR } from "http://localhost:8080/bun:wrap"; import * as $a77976b9 from "http://localhost:8080/node_modules/react/jsx-dev-runtime.js"; var JSX = require($a77976b9); var jsx = require(JSX).jsxDEV; import * as $a66742df from "http://localhost:8080/node_modules/react/index.js"; var { default: React} = require($a66742df); var hmr = new FastHMR(4175696745, "react-context-value-func.tsx", FastRefresh), exports = hmr.exports; (hmr._load = function() { const Context = React.createContext({}); const ContextProvider = ({ children }) => { const [cb, setCB] = React.useState(function() { }); return jsx(Context.Provider, { value: cb, children: children(true) }); }; const ContextValue = ({}) => jsx(Context.Consumer, { children: (foo) => { if (foo) return jsx("div", { children: "Worked!" }); throw `Value "${foo}"" should be true`; } }); const TestComponent = () => jsx(ContextProvider, { children: jsx(ContextValue, {}) }); function test() { const foo = jsx(TestComponent, {}); 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 }; //# sourceMappingURL=http://localhost:8080/react-context-value-func.tsx.map ption> Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/integration/snapshots/code-simplification-neql-define.hmr.debug.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-06-22Move builtins to src/javascript/jsc/builtinsGravatar Jarred Sumner 72-6/+2285
2022-06-22Tweak test runner outputGravatar Jarred Sumner 1-90/+44
2022-06-22Cleanup some testsGravatar Jarred Sumner 2-8/+46
2022-06-22Update Dockerfile.baseGravatar Jarred Sumner 1-1/+1
2022-06-22Update WebKitGravatar Jarred Sumner 1-0/+0
2022-06-22cleanup websocket testGravatar Jarred Sumner 1-3/+6
2022-06-22Fix `WebSocket` when HTTP server is not runningGravatar Jarred Sumner 14-38/+103
2022-06-22Update build-idGravatar Jarred Sumner 1-1/+1
2022-06-22cleanupGravatar Jarred Sumner 6-719/+3
2022-06-22Update index.d.tsGravatar Jarred Sumner 1-0/+1
2022-06-22types for `bun:jsc`Gravatar Jarred Sumner 2-1/+37
2022-06-22Slightly customize the `events` polyfill so it uses ESMGravatar Jarred Sumner 1-1/+522
2022-06-22Fix memory bugs in escapeHTML & arrayBufferToStringGravatar Jarred Sumner 1-65/+61