Skip to content

Commit

Permalink
fix: add esm build for react
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-ribeiro committed Feb 27, 2024
1 parent ad580a9 commit 049fd63
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,11 @@ build({
format: "cjs",
external: ["react", "."],
}).catch(exit);

build({
...config,
entryPoints: ["./src/react/index.ts"],
outfile: "./dist/react/index.mjs",
format: "esm",
external: ["react", "."],
}).catch(exit);

0 comments on commit 049fd63

Please sign in to comment.