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

Replace require with @embroider/macros fixing embroider support #741

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

achambers
Copy link
Contributor

@achambers achambers commented Nov 8, 2023

In order to place nicely with Embroider, we need to remove require. Instead we can use dependencySatisfies and importSync.

Resolves #740

Changes proposed:

  • Remove require and replace with dependencySatisfies and importSync. (docs)

Tasks:

N/A

In order to place nicely with Embroider, we need to remove
window.require. Instead we can use `dependencySatisfies` and
`importSync`.
Copy link
Contributor

@mansona mansona left a comment

Choose a reason for hiding this comment

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

Looks great 🎉

@mansona mansona merged commit 68fd0fa into adopted-ember-addons:master Nov 8, 2023
6 of 9 checks passed
@achambers achambers deleted the remove-require branch November 8, 2023 11:53
@fsmanuel
Copy link
Contributor

fsmanuel commented Nov 8, 2023

@achambers Awesome!

@fsmanuel
Copy link
Contributor

fsmanuel commented Nov 8, 2023

@achambers is this also possible for import __EMBER_METAL__ from '@ember/-internals/metal/index'; #739?

@mansona mansona changed the title Replace require with @embroider/macros Replace require with @embroider/macros fixing embroider support Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embroider: Use of ember-data internals
3 participants