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
Could esbuild add an option for turning off automatic JSX call /* @__PURE__ */ annotation?
I use a custom library powered by JSX. In the library the JSX calls have important side-effects, but the call results are not always used. Since esbuild marks all JSX calls with /* @__PURE__ */, minifiers/tree-shakers end up deleting JSX calls that shouldn't be deleted.
I realise the default makes sense for libraries like React, but I'm hoping JSX could have uses beyond them too!
The text was updated successfully, but these errors were encountered:
Could esbuild add an option for turning off automatic JSX call
/* @__PURE__ */
annotation?I use a custom library powered by JSX. In the library the JSX calls have important side-effects, but the call results are not always used. Since esbuild marks all JSX calls with
/* @__PURE__ */
, minifiers/tree-shakers end up deleting JSX calls that shouldn't be deleted.I realise the default makes sense for libraries like React, but I'm hoping JSX could have uses beyond them too!
The text was updated successfully, but these errors were encountered: