diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/apps/bun-install.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/apps/bun-install.sh b/test/apps/bun-install.sh index 78fcc2837..18813b2d2 100644 --- a/test/apps/bun-install.sh +++ b/test/apps/bun-install.sh @@ -5,7 +5,7 @@ set -euo pipefail dir=$(mktemp -d) cd $dir -${NPM_CLIENT:-$(which bun)} add react react-dom @types/react @babel/parser esbuild +${NPM_CLIENT:-$(which bun)} add react react-dom @types/react @babel/parser esbuild vite@3.0.0 echo "console.log(typeof require(\"react\").createElement);" >index.js chmod +x index.js @@ -32,6 +32,9 @@ $(which grealpath || which realpath) -e ./node_modules/.bin/parser >/dev/null # - https://github.com/evanw/esbuild/issues/2558 ./node_modules/.bin/esbuild --version >/dev/null +VITE_ESBUILD="$(echo node_modules/vite/node_modules/esbuild-*)" +$VITE_ESBUILD/bin/esbuild --version >/dev/null + if [ "$JS_RUNTIME" == "node" ]; then result="$(node ./index.js)" fi |