diff --git a/.changeset/rotten-jokes-think.md b/.changeset/rotten-jokes-think.md new file mode 100644 index 0000000..78cb4a8 --- /dev/null +++ b/.changeset/rotten-jokes-think.md @@ -0,0 +1,5 @@ +--- +"slick-toc": patch +--- + +fix: exclude react/jsx-runtime from build output diff --git a/vite.config.ts b/vite.config.ts index a100004..ee7de3d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -14,7 +14,7 @@ export default defineConfig({ rollupOptions: { // make sure to externalize deps that shouldn't be bundled // into your library - external: ["react", "react-dom", "react-jsx-runtime.production"], + external: ["react", "react-dom", "react/jsx-runtime"], output: { // Provide global variables to use in the UMD build // for externalized deps