-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explicit esbuild dependency blocks fallback to esbuild-wasm #13208
Comments
I think this should be fixed or handled on Angular side. We've been using a direct "overrides": {
"esbuild": "npm:esbuild-wasm@latest"
} |
The issue with In our case, Windows require signing I do not think Angular can have a "fix" here, since the issue happens on install ( |
|
Native packages as long as they are signed is not an issue - they can be excluded from AppLocker using signing details. Adding overrides is a working workaround (with performance penalties), but it could not be needed if libraries adopt |
I don't think we will be supporting this. We have already started using more binaries, e.g. from Rollup 4 and there's no plans for this setup. |
Describe the bug
vite
addsesbuild
as explicit dependency: https://github.com/vitejs/vite/blob/main/packages/vite/package.json#L69In some environments
esbuild
executable can be blocked (due to security or other reasons) and not having proper fallback toesbuild-wasm
blocks any development there.We noticed the issue after upgrading to latest version of Angular which adds
vite
as a dependency. Angular itself solves this by addingesbuild-wasm
as adependency
andesbuild
as aoptionalDependency
. This allows usingesbuild
on environements where executable is not blocked and successfully fallbacks toesbuild-wasm
where original executable is blocked - https://github.com/angular/angular-cli/blob/419cc8282ecc8a06dfe5d66aacf29ee50da2cf80/packages/angular_devkit/build_angular/package.json#L75Would it be possible to add similar dependency setup for
vite
as well?Related issues on
angular-cli
andjest-preset-angular
:esbuild.exe
thymikee/jest-preset-angular#1255Reproduction
https://github.com/minijus/vite-esbuild-repro
Steps to reproduce
Repository with "reproduction" contains two Angular workspaces, with v15 and v16.
v15 does not have
vite
as a dependency and transitiveesbuild
dependency from Angular is always optional.v16 has
vite
as a transitive dependency and in this setupesbuild
becomes standard dependency with no possibility to fallback toesbuild-wasm
.System Info
There is nothing specific about environment details that impact the issue. Issue originates on restricted environments that block `esbuild` executable.
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: