mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 04:26:01 +08:00
When using a global script (`scripts` option) with the esbuild-based browser application builder, an attempt to read the script as a relative path from the workspace root will be performed first. This avoids the need to perform a potentially expensive module resolution attempt for files that are directly available and also ensures the relative paths are given priority over any potential modules with the same name. This matches prior behavior that also preferred relative paths.