Skip to content

Commit

Permalink
fix: exclude jsx runtime from output (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyKilleen authored Jan 28, 2023
1 parent 9a68228 commit 4245bd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/rotten-jokes-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slick-toc": patch
---

fix: exclude react/jsx-runtime from build output
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4245bd7

Please sign in to comment.