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
esbuild optimizes TS code with decorators a bit different to tsc. This is not a huge difference but class names are lost if a class is decorated. There is keepNames (keep-names) option in esbuild that ensures the name is restored. It would be great if angular cli expose this opton in angular.json
Describe the solution you'd like
keepNames can be exposed in angular.json under AngularDevkitBuildAngularBuildersBrowserEsbuildSchema
getEsBuildCommonOptions in this case should just forward this option to BuildOptions
Describe alternatives you've considered
Currently, I've patched getEsBuildCommonOptions to set keepNames as !optimizationOptions.scripts within my project.
Setting the keepNames this way might be an alternative, but explicit exposure is best IMHO
The text was updated successfully, but these errors were encountered:
Command
build, serve
Description
esbuild optimizes TS code with decorators a bit different to tsc. This is not a huge difference but class names are lost if a class is decorated. There is
keepNames
(keep-names) option in esbuild that ensures the name is restored. It would be great if angular cli expose this opton in angular.jsonDescribe the solution you'd like
keepNames
can be exposed in angular.json under AngularDevkitBuildAngularBuildersBrowserEsbuildSchemagetEsBuildCommonOptions in this case should just forward this option to BuildOptions
Describe alternatives you've considered
Currently, I've patched
getEsBuildCommonOptions
to setkeepNames
as!optimizationOptions.scripts
within my project.Setting the keepNames this way might be an alternative, but explicit exposure is best IMHO
The text was updated successfully, but these errors were encountered: