comparison third_party/bun/node_modules/react-dom/client.js @ 12:de54585a40f1

Adding bun and node modules.
author June Park <parkjune1995@gmail.com>
date Thu, 02 Oct 2025 14:39:48 -0700
parents
children
comparison
equal deleted inserted replaced
11:f33d9ff8b6e8 12:de54585a40f1
1 'use strict';
2
3 var m = require('react-dom');
4 if (process.env.NODE_ENV === 'production') {
5 exports.createRoot = m.createRoot;
6 exports.hydrateRoot = m.hydrateRoot;
7 } else {
8 var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
9 exports.createRoot = function(c, o) {
10 i.usingClientEntryPoint = true;
11 try {
12 return m.createRoot(c, o);
13 } finally {
14 i.usingClientEntryPoint = false;
15 }
16 };
17 exports.hydrateRoot = function(c, h, o) {
18 i.usingClientEntryPoint = true;
19 try {
20 return m.hydrateRoot(c, h, o);
21 } finally {
22 i.usingClientEntryPoint = false;
23 }
24 };
25 }