fix: remove CJS require shim from ESM bundle (Vite 6 + externalize react/jsx-runtime)
This commit is contained in:
+2
-1
@@ -13,11 +13,12 @@ export default defineConfig({
|
||||
formats: ["es", "umd"],
|
||||
},
|
||||
rollupOptions: {
|
||||
external: ["react", "react-dom"],
|
||||
external: ["react", "react-dom", "react/jsx-runtime"],
|
||||
output: {
|
||||
globals: {
|
||||
react: "React",
|
||||
"react-dom": "ReactDOM",
|
||||
"react/jsx-runtime": "ReactJSXRuntime",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user