Remove react/jsx-dev-runtime dynamic browser import
This commit is contained in:
@@ -9,7 +9,7 @@ export default async function startServer() {
|
||||
|
||||
global.SERVER = server;
|
||||
|
||||
log.server(`http://localhost:${server.port}`);
|
||||
log.server(`http://${server.hostname}:${server.port}`);
|
||||
|
||||
return server;
|
||||
}
|
||||
|
||||
@@ -76,10 +76,10 @@ export default async function genWebHTML({
|
||||
"react/jsx-runtime": `https://esm.sh/react@${_reactVersion}/jsx-runtime`,
|
||||
};
|
||||
|
||||
if (dev) {
|
||||
browser_imports["react/jsx-dev-runtime"] =
|
||||
`https://esm.sh/react@${_reactVersion}/jsx-dev-runtime`;
|
||||
}
|
||||
// if (dev) {
|
||||
// browser_imports["react/jsx-dev-runtime"] =
|
||||
// `https://esm.sh/react@${_reactVersion}/jsx-dev-runtime`;
|
||||
// }
|
||||
|
||||
const importMap = JSON.stringify({
|
||||
imports: browser_imports,
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ export type BunextConfig = {
|
||||
| undefined;
|
||||
defaultCacheExpiry?: number;
|
||||
websocket?: WebSocketHandler<any>;
|
||||
serverOptions?: Bun.Serve.Options<any>;
|
||||
serverOptions?: Omit<Bun.Serve.Options<any>, "fetch" | "routes">;
|
||||
};
|
||||
|
||||
export type BunextConfigMiddlewareParams = {
|
||||
|
||||
Reference in New Issue
Block a user