Skip to content
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

big cleanup #786

Merged
merged 5 commits into from
Dec 23, 2023
Merged

big cleanup #786

merged 5 commits into from
Dec 23, 2023

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Dec 22, 2023

Lots of code here isn't needed anymore because we dropped support for the last ember versions that needed moduleApiPolyfill, which means we can always use babel-plugin-ember-template-compilation, which is smart enough to handle its own parallelizability.

Lots of code here isn't needed anymore because we dropped support for the last ember versions that needed moduleApiPolyfill, which means we can always use babel-plugin-ember-template-compilation, which is smart enough to handle its own parallelizability.
@ef4 ef4 mentioned this pull request Dec 22, 2023
@ef4
Copy link
Contributor Author

ef4 commented Dec 22, 2023

I'm also dropping the "addon" APIs transpileTree and precompile.

precompile has been broken for many, many releases and apparently nobody cared, so goodbye.

transpileTree had already been whittled down to nothing but hbsToJs from @embroider/shared-internals.

@ef4
Copy link
Contributor Author

ef4 commented Dec 23, 2023

Once embroider-build/embroider#1743 is out this should all pass.

@ef4 ef4 added the breaking label Dec 23, 2023
@ef4 ef4 merged commit 671b395 into master Dec 23, 2023
13 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cleanup branch December 23, 2023 23:12
ef4 added a commit to glimmerjs/glimmer-vm that referenced this pull request Dec 24, 2023
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.
ef4 added a commit to glimmerjs/glimmer-vm that referenced this pull request Dec 24, 2023
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.
ef4 added a commit to glimmerjs/glimmer-vm that referenced this pull request Dec 24, 2023
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant