Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Conversation

@ef4
Copy link
Contributor

@ef4 ef4 commented Dec 24, 2023

(This builds off #1538 because otherwise it would conflict.)

ef4 added 2 commits December 24, 2023 13:03
While working toward [strict-es-modules](emberjs/rfcs#938), I found that under real ES modules, this feature-detection code will become eager, which makes it blow up inside all versions of ember-cli-htmlbars before ember-cli/ember-cli-htmlbars#786, because ember-cli-htmlbars insists on evaluating the template compiler bundle inside a VM with no valid `URL` global.

While that is now fixed in an upcoming major of ember-cli-htmlbars, people can't benefit from that until their very last addon upgrades ember-cli-htmlbars.

So it's also good to fix this directly, by making the feature detection code explicitly lazy.
@NullVoxPopuli
Copy link
Contributor

NullVoxPopuli commented Dec 24, 2023

@ef4 pnpm lintfix will get ya green -- I pushed it up for ya!

@NullVoxPopuli NullVoxPopuli merged commit bdf6e4a into main Dec 24, 2023
@NullVoxPopuli NullVoxPopuli deleted the drop-ie11-code branch December 24, 2023 19:41
@ef4
Copy link
Contributor Author

ef4 commented Dec 24, 2023

Thanks. Prettier was acting weird for me in this repo, but now I can't reproduce.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants