Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): default preserve symlinks to Node…
Browse files Browse the repository at this point in the history
….js value for esbuild

When using the experimental esbuild-based browser application builder, the `preserveSymlinks`
option will now default to the value of the Node.js `--preserve-symlinks` argument. This removes
the need to manually specify the option in two places if executing the build manually with Node.js
or via the `NODE_OPTIONS` environment variable. This behavior mimics that of the default Webpack-based
builder.

(cherry picked from commit 9771696)
  • Loading branch information
clydin authored and dgp1130 committed Dec 5, 2022
1 parent 24f4b51 commit 3d9971e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ export async function normalizeOptions(
crossOrigin,
externalDependencies,
poll,
preserveSymlinks,
// If not explicitly set, default to the Node.js process argument
preserveSymlinks: preserveSymlinks ?? process.execArgv.includes('--preserve-symlinks'),
stylePreprocessorOptions,
subresourceIntegrity,
verbose,
Expand Down

0 comments on commit 3d9971e

Please sign in to comment.