diff options
Diffstat (limited to 'examples/hello-next/bun-framework-next/client.development.tsx')
-rw-r--r-- | examples/hello-next/bun-framework-next/client.development.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/hello-next/bun-framework-next/client.development.tsx b/examples/hello-next/bun-framework-next/client.development.tsx index a4ef9bf96..755441fa2 100644 --- a/examples/hello-next/bun-framework-next/client.development.tsx +++ b/examples/hello-next/bun-framework-next/client.development.tsx @@ -1,3 +1,7 @@ +globalThis.global = globalThis; +globalThis.Bun_disableCSSImports = true; + +import * as React from "react"; var onlyChildPolyfill = React.Children.only; React.Children.only = function (children) { if (children && typeof children === "object" && children.length == 1) { @@ -7,7 +11,6 @@ React.Children.only = function (children) { return onlyChildPolyfill(children); }; -globalThis.global = globalThis; import * as ReactDOM from "react-dom"; import App from "next/app"; import mitt, { MittEmitter } from "next/dist/shared/lib/mitt"; @@ -43,7 +46,6 @@ import { createRouter, makePublicRouterInstance, } from "next/dist/client/router"; -import * as React from "react"; export const emitter: MittEmitter<string> = mitt(); declare global { |