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 would like this option to inject HTML templates into a bundle at build time (don't ask why, constraints and such...).
My current workaround is to join all lines in the template and sanitize the string so that special chars are escaped. Works, but is a bit more tedious than simply passing a template literal.
The text was updated successfully, but these errors were encountered:
For complex variable replacing cases, a common solution in esbuild is using the inject option to provide the implementation in a real js file, example.
It seems there is currently no way to define template strings.
https://esbuild.github.io/try/#dAAwLjI1LjAALS1kZWZpbmU6Rk9PPSdgZm9vYCcA
I would like this option to inject HTML templates into a bundle at build time (don't ask why, constraints and such...).
My current workaround is to join all lines in the template and sanitize the string so that special chars are escaped. Works, but is a bit more tedious than simply passing a template literal.
The text was updated successfully, but these errors were encountered: