angular-builders
angular-builders copied to clipboard
Incorrect signature for custom-esbuild index html transform function
Describe the Bug
According to Angular CLI codebase, the type signature of the transform function only includes the HTML and not the target.
In the docs, it includes both.
Expected Behavior
Target options should be passed as is or align the docs with Angular CLI.
Environment
Libs
- @angular/core version: 17.3.5
- @angular-devkit/build-angular version: 17.3.5
- @angular-builders/custom-esbuild version: 17.1.2
For Tooling issues:
- Node version: 20.10.0
- Platform: Windows
If someone is using Nx, you can use the following environment variables to retrieve it during the transformer execution:
NX_TASK_TARGET_PROJECTNX_TASK_TARGET_TARGETNX_TASK_TARGET_CONFIGURATION
Reference: https://nx.dev/reference/environment-variables