Skip to content

Commit

Permalink
Merge pull request #35 from netlify/fix-build-script
Browse files Browse the repository at this point in the history
fix: build script
  • Loading branch information
Skn0tt committed Aug 10, 2023
2 parents 058b108 + eff3854 commit 21a4965
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/esbuild.js
Expand Up @@ -26,6 +26,7 @@ const buildNeutralLib = (esbuildPath) => {
'--target=' + nodeTarget,
'--define:ESBUILD_VERSION=' + JSON.stringify(version),
'--external:esbuild',
'--external:@netlify/esbuild',
'--platform=node',
'--log-level=warning',
], { cwd: repoDir })
Expand All @@ -39,6 +40,7 @@ const buildNeutralLib = (esbuildPath) => {
'--define:WASM=false',
'--define:ESBUILD_VERSION=' + JSON.stringify(version),
'--external:esbuild',
'--external:@netlify/esbuild',
'--platform=node',
'--log-level=warning',
], { cwd: repoDir })
Expand All @@ -50,6 +52,7 @@ const buildNeutralLib = (esbuildPath) => {
'--bundle',
'--target=' + nodeTarget,
'--external:esbuild',
'--external:@netlify/esbuild',
'--platform=node',
'--log-level=warning',
], { cwd: repoDir })
Expand All @@ -65,6 +68,7 @@ const buildNeutralLib = (esbuildPath) => {
'--bundle',
'--target=' + nodeTarget,
'--external:esbuild',
'--external:@netlify/esbuild',
'--platform=node',
'--log-level=warning',
], { cwd: repoDir }))(platforms, platforms.exports, require)
Expand Down Expand Up @@ -121,6 +125,7 @@ exports.buildWasmLib = async (esbuildPath) => {
'--define:WASM=true',
'--define:ESBUILD_VERSION=' + JSON.stringify(version),
'--external:esbuild',
'--external:@netlify/esbuild',
'--platform=node',
'--log-level=warning',
], { cwd: repoDir })
Expand Down

0 comments on commit 21a4965

Please sign in to comment.