You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working on upgrading an Angular 16 application to Angular 17 and I would like to use esbuild.
My application requires index.html transformation. This transformation relies on data from the targetOptions parameter.
With version 16, I was using @angular-builders/custom-webpack and it was working fine.
Unfortunately, with @angular-builders/custom-esbuild, the targetOptions are not present during the transformation. Instead, it's the content of the index file.
Yet the documentation indicates that targetOptions should be accessible.
Minimal Reproduction
Just creating a new Angular 17 application (via ng new), and following the instruction of the doc :
Adding @angular-builders/custom-esbuild as a dev dependency
Replacing @angular-devkit/build-angular:application with @angular-builders/custom-esbuild:application and @angular-devkit/build-angular:dev-server with @angular-builders/custom-esbuild:dev-server in angular.json
Adding index-html-transformer.ts with the following code :
The text was updated successfully, but these errors were encountered:
shisukei
changed the title
TargetOptions parameter is undefined with custom-esbuild
TargetOptions parameter is not there with custom-esbuild
Feb 23, 2024
Describe the Bug
Hi,
I am currently working on upgrading an Angular 16 application to Angular 17 and I would like to use esbuild.
My application requires index.html transformation. This transformation relies on data from the targetOptions parameter.
With version 16, I was using
@angular-builders/custom-webpack
and it was working fine.Unfortunately, with
@angular-builders/custom-esbuild
, the targetOptions are not present during the transformation. Instead, it's the content of the index file.Yet the documentation indicates that targetOptions should be accessible.
Minimal Reproduction
Just creating a new Angular 17 application (via ng new), and following the instruction of the doc :
@angular-builders/custom-esbuild
as a dev dependency@angular-devkit/build-angular:application
with@angular-builders/custom-esbuild:application
and@angular-devkit/build-angular:dev-server
with@angular-builders/custom-esbuild:dev-server
in angular.jsonHere is the result on ng build / ng serve :
Expected Behavior
TargetOptions should be there. Or at least, documentation needs an update.
Environment
The text was updated successfully, but these errors were encountered: