Skip to content

Commit

Permalink
fix: resolve excludeExportForEntry & binary resolve issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayZoneYour committed May 5, 2023
1 parent f5d7295 commit 12bfa23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/npm/node-platform.ts
Expand Up @@ -127,7 +127,7 @@ export function generateBinPath(): { binPath: string, isWASM: boolean } {
try {
// First check for the binary package from our "optionalDependencies". This
// package should have been installed alongside this package at install time.
binPath = require.resolve(`${pkg.replace('@esbuild', '@speedy-js/esbuild')}-${subpath}`)
binPath = require.resolve(`${pkg.replace('@esbuild/', '@speedy-js/esbuild-')}/${subpath}`)
} catch (e) {
// If that didn't work, then someone probably installed esbuild with the
// "--no-optional" flag. Our install script attempts to compensate for this
Expand Down
1 change: 1 addition & 0 deletions pkg/api/api_impl.go
Expand Up @@ -1263,6 +1263,7 @@ func validateBuildOptions(
LegalComments: validateLegalComments(buildOpts.LegalComments, buildOpts.Bundle),
SourceRoot: buildOpts.SourceRoot,
ExcludeSourcesContent: buildOpts.SourcesContent == SourcesContentExclude,
ExcludeExportForEntry: buildOpts.ExcludeExportForEntry,
MinifySyntax: buildOpts.MinifySyntax,
MinifyWhitespace: buildOpts.MinifyWhitespace,
MinifyIdentifiers: buildOpts.MinifyIdentifiers,
Expand Down

0 comments on commit 12bfa23

Please sign in to comment.