File tree Expand file tree Collapse file tree 3 files changed +3
-55
lines changed Expand file tree Collapse file tree 3 files changed +3
-55
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ function reject(root, error) {
92
92
}
93
93
94
94
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} ) => {
96
96
const node = document . createElement ( "DIV" ) ;
97
97
return [ node , createRoot ( node ) ] ;
98
98
} ) ) . then ( ( [ node , client ] ) => {
Original file line number Diff line number Diff line change @@ -172,8 +172,8 @@ export async function getResolvers(
172
172
173
173
// Add React for JSX blocks.
174
174
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" ) ;
177
177
}
178
178
179
179
// Add transitive imports for built-in libraries.
You can’t perform that action at this time.
0 commit comments