Skip to content

Commit

Permalink
fix: add platform=node to cjs build
Browse files Browse the repository at this point in the history
  • Loading branch information
ruicsh committed Jul 16, 2022
1 parent e4d1d1b commit ef1b30d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sh/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ main() {
esbuild src/index.ts \
--bundle \
--minify \
--outfile=dist/index.cjs.js
--outfile=dist/index.cjs.js \
--platform=node

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

rm dist/index.js
Expand Down

0 comments on commit ef1b30d

Please sign in to comment.