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

Convert addon to v2 format #622

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Convert addon to v2 format #622

merged 1 commit into from
Jul 9, 2024

Conversation

SergeAstapov
Copy link
Collaborator

This is breaking change as consuming app should have ember-auto-import => 2 installed.

owner.register(`engine:${name}`, require(`${name}/engine`).default);
owner.register(
`engine:${name}`,
globalThis.require(`${name}/engine`).default,
Copy link
Collaborator Author

@SergeAstapov SergeAstapov Jul 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is not possible to use require under Embroider, so this supports only classic Ember CLI build (as it did before)

@SergeAstapov SergeAstapov merged commit 01f8a60 into master Jul 9, 2024
10 checks passed
@SergeAstapov SergeAstapov deleted the v2-addon branch July 9, 2024 14:11
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