-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to turn off lowering for script inlining #2649
Comments
What about enable |
The lowering occurs despite template-literal being supported at line 12600. esbuild/internal/js_parser/js_parser.go Lines 12594 to 12609 in 97d6dba
|
Leaving this link here in case it helps: https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements |
@lydell right- esbuild is lowering to ensure the output can be the contents of a |
In the next release, esbuild will only do this if the |
thank you @evanw! |
Code like the following is lowered due to 58ac420 always lower template literals containing "</script>".
This breaks compatibility with libs like minify-html-literals because esbuild has lowered the template string to plain string syntax, making it impossible for minify-html-literals to find the tagged template literal.
Would it make sense to have an option to disable script inlining compatibility?
The text was updated successfully, but these errors were encountered: