Skip to content

Commit 6b6ae78

Browse files
authored
npm:react-dom (#1467)
1 parent 847f252 commit 6b6ae78

File tree

3 files changed

+3
-55
lines changed

3 files changed

+3
-55
lines changed

docs/lib/react.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/client/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function reject(root, error) {
9292
}
9393

9494
function displayJsx(root, value) {
95-
return (root._root ??= import("npm:react-dom/client").then(({createRoot}) => {
95+
return (root._root ??= import("npm:react-dom").then(({createRoot}) => {
9696
const node = document.createElement("DIV");
9797
return [node, createRoot(node)];
9898
})).then(([node, client]) => {

src/resolvers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ export async function getResolvers(
172172

173173
// Add React for JSX blocks.
174174
if (page.code.some((c) => c.mode === "jsx")) {
175-
staticImports.add("npm:react-dom/client");
176-
globalImports.add("npm:react-dom/client");
175+
staticImports.add("npm:react-dom");
176+
globalImports.add("npm:react-dom");
177177
}
178178

179179
// Add transitive imports for built-in libraries.

0 commit comments

Comments
 (0)