-
Notifications
You must be signed in to change notification settings - Fork 137
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
Prevent HTML-escaping of module specifiers #1365
Conversation
@@ -11,4 +11,7 @@ handlebars.registerHelper('json-stringify', function (input: any, indent?: numbe | |||
handlebars.registerHelper('eq', function (a: any, b: any) { | |||
return a === b; | |||
}); | |||
export const compile = handlebars.compile; | |||
|
|||
export function compile(input: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, this changes the signature of this function, as you could previously pass custom options. But this was nowhere the case AFAICT. And it seems better to me to not expose this, but own the config internally here.
I can change that of course in case of disagreement!
Failing test scenarios seem to be related to #1366 |
Previously I had done this in each place it came up by using triple curlies. I like your solution better, but we should remove all the triple curlies too so it's not confusing. |
0987ab7
to
4485f71
Compare
@ef4 done! Still getting a bunch of failed CI jobs due to some network issues when installing node, even after re-running them... |
4485f71
to
b5b840b
Compare
b5b840b
to
17e2f6b
Compare
Thanks for working on this, I think it's ready to go. |
Switching a pnpm-based repo to its newer
lockfileVersion: '6.0'
causednode_modules
to have folders containing an=
equal sign (for patched packages), which breaks the build as that equal sign gets wrongly HTML-escaped to=
, causing module not found errors.This PR basically replicates the same fix as for ember-auto-import.
I was able to confirm - by patching the local file in
node_modules
with the same changes as in this PR - that it fixes the build issue I had.