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

Adding forced v2 packages feature #2108

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Adding forced v2 packages feature #2108

merged 1 commit into from
Sep 12, 2024

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Sep 12, 2024

This adds a feature to @embroider/shared-internals so that the env var EMBROIDER_FORCED_V2_PACKAGES can cause any package to be interpreted as a v2 package regardless of what the package itself says.

The initial motivating use case for this is that new-enough ember-source can function as a valid v2 addon despite not declaring itself to be a v2 addon, because that would be potentially-breaking for people who still consume it via AMD and/or depend on the specific timng of the classic vendor.js file. We don't want to break existing usage but we also want people on the bleeding edge to be able to take advantage of the capability.

This adds a feature to `@embroider/shared-internals` so that the env var `EMBROIDER_FORCED_V2_PACKAGES` can cause any package to be interpreted as a v2 package regardless of what the package itself says.

The purpose of this is to unblock testing of ember-source as a v2 addon. Current ember-source canary is formatted as a valid v2 addon except it doesn't declare itself to be one, because that would be potentially-breaking for people who are still consuming it via AMD and/or relying on the specific timing details of the classic vendor.js.
@ef4 ef4 added the enhancement New feature or request label Sep 12, 2024
@ef4 ef4 merged commit f7656a3 into main Sep 12, 2024
154 checks passed
@ef4 ef4 deleted the forced-v2-addons branch September 12, 2024 17:37
@github-actions github-actions bot mentioned this pull request Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant