esbuild 0.12.4
-
Reorder name preservation before TypeScript decorator evaluation (#1316)
The
--keep-namesoption ensures the.nameproperty on functions and classes remains the same after bundling. However, this was being enforced after TypeScript decorator evaluation which meant that the decorator could observe the incorrect name. This has been fixed and now.namepreservation happens before decorator evaluation instead. -
Potential fix for a determinism issue (#1304)
This release contains a potential fix for an unverified issue with non-determinism in esbuild. The regression was apparently introduced in 0.11.13 and may be related to parallelism that was introduced around the point where dynamic
import()expressions are added to the list of entry points. Hopefully this fix should resolve the regression. -
Respect
targetintsconfig.json(#277)Each JavaScript file that esbuild bundles will now be transformed according to the
targetlanguage level from the nearest enclosingtsconfig.jsonfile. This is in addition to esbuild's own--targetsetting; the two settings are merged by transforming any JavaScript language feature that is unsupported in either esbuild's configured--targetvalue or thetargetproperty in thetsconfig.jsonfile.