Skip to content

Commit

Permalink
fix: use format option on CJS export
Browse files Browse the repository at this point in the history
  • Loading branch information
ruicsh committed Jul 16, 2022
1 parent ef1b30d commit a9affb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sh/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ main() {

esbuild src/index.ts \
--bundle \
--format=cjs \
--minify \
--outfile=dist/index.cjs.js \
--platform=node
--outfile=dist/index.cjs.js

esbuild src/index.ts \
--bundle \
--format=esm \
--minify \
--outfile=dist/index.esm.js

rm dist/index.js
Expand Down

0 comments on commit a9affb7

Please sign in to comment.