Skip to content

Commit

Permalink
switch from bun to esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Dec 25, 2024
1 parent 11ca277 commit 37ec96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-webassembly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if [ $? -eq 0 ]; then
if command -v npx >/dev/null 2>&1; then
echo "Transpiling JavaScript for older browsers..."

if yes | npx bun transpile ${OUTPUT_BASE}.js --out-file ${OUTPUT_BASE}.transpiled.js; then
if yes | npx esbuild ${OUTPUT_BASE}.js --outfile=${OUTPUT_BASE}.transpiled.js --minify=true --target=esnext; then
mv ${OUTPUT_BASE}.transpiled.js ${OUTPUT_BASE}.js
else
echo "Warning: Babel transpiling failed. JavaScript was not transpiled."
Expand Down

0 comments on commit 37ec96e

Please sign in to comment.