diff --git a/vite.config.ts b/vite.config.ts index 4e648759eb..6552fba096 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,7 +4,7 @@ import react from "@vitejs/plugin-react"; import pkg from "./package.json"; export default defineConfig({ - plugins: [react({ jsxRuntime: "automatic" })], + plugins: [react({ jsxRuntime: "classic" })], build: { target: "ES2017", lib: { @@ -12,7 +12,7 @@ export default defineConfig({ fileName: (format, name) => `${name}.${format === "umd" ? "cjs" : "mjs"}`, }, rollupOptions: { - external: [...Object.keys(pkg.peerDependencies), "react/jsx-runtime"], + external: Object.keys(pkg.peerDependencies), input: "./src/index.ts", output: [ {