Skip to content

Commit

Permalink
build: get esbuild from $ESBUILD env var
Browse files Browse the repository at this point in the history
resolves #1

Co-authored-by: Erik De Rijcke <derijcke.erik@gmail.com>
  • Loading branch information
tombl and Zubnix committed Mar 18, 2024
1 parent b349bdd commit 3a75965
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/wasm/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
dist/index.js: src/*.ts
esbuild --bundle src/index.ts --outdir=dist --format=esm --splitting --sourcemap --minify
ESBUILD ?= esbuild

all: dist/index.js

dist/index.js: src/*.ts
$(ESBUILD) --bundle src/index.ts --outdir=dist --format=esm --splitting --sourcemap --minify

0 comments on commit 3a75965

Please sign in to comment.