Skip to content

Commit

Permalink
build: use tsx over esbuild-kit/esm-loader again?
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Dec 20, 2023
1 parent 0a4ed6d commit 96a87a6
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 536 deletions.
2 changes: 1 addition & 1 deletion .node_flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ echo "Using Node.js $(node --version)"

node -e 'process.exit(parseInt(process.versions.node, 10))' &> /dev/null
NODE_VERSION=$?
export NODE_OPTIONS='--conditions=browser --experimental-loader=@esbuild-kit/esm-loader --no-warnings --tls-cipher-list="DHE-RSA-AES128-GCM-SHA256 ECDHE-RSA-AES128-GCM-SHA256 DHE-RSA-AES256-GCM-SHA384 ECDHE-RSA-AES256-GCM-SHA384"'
export NODE_OPTIONS='--import=tsx/esm --conditions=browser --no-warnings --tls-cipher-list="DHE-RSA-AES128-GCM-SHA256 ECDHE-RSA-AES128-GCM-SHA256 DHE-RSA-AES256-GCM-SHA384 ECDHE-RSA-AES256-GCM-SHA384"'

if [[ $NODE_VERSION -eq 18 ]]; then
export NODE_OPTIONS+=' --experimental-global-webcrypto'
Expand Down
Loading

0 comments on commit 96a87a6

Please sign in to comment.