Skip to content

Commit

Permalink
fix(lib): revert to classic JSX runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard committed Apr 18, 2024
1 parent 42e4c22 commit ad5be55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ 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: {
entry: resolve(__dirname, "src/index.ts"),
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: [
{
Expand Down

0 comments on commit ad5be55

Please sign in to comment.