Bugfix. Extract react imports from main bundler to vendor static files
This commit is contained in:
@@ -28,6 +28,7 @@ export default async function grabClientHydrationScript({ page_local_path, }) {
|
||||
}
|
||||
let txt = ``;
|
||||
txt += `import { hydrateRoot } from "${ROOT_DIR}/node_modules/react-dom/client.js";\n`;
|
||||
// txt += `import react from "${ROOT_DIR}/node_modules/react/index.js";\n`;
|
||||
if (root_file_path) {
|
||||
txt += `import Root from "${root_file_path}";\n`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user