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

Use require instead of import to make Embroider happy #20

Merged
merged 2 commits into from
Nov 4, 2022

Conversation

zeppelin
Copy link

@zeppelin zeppelin commented Oct 19, 2022

Switches to the require global to access what was previously imported. Since Embroider won't expose synthetic modules, only real ones that Node module resolution would be able access. As mentioned inside the comment, it's a recommended way of doing such things by the Ember Core team members.

Also adds focus-trap to devDependencies to work around this issue. (focus-trap is a dependency of ember-bootstrap which is being used for the dummy app).

The Embroider scenarios are all based on versions of Ember & Ember Data currently defined in package.json, which are 3.28 at the moment.

Special thanks to @mansona <3

@zeppelin zeppelin force-pushed the inline-ember-interal-utils branch 2 times, most recently from e71c3ac to f8a696e Compare October 24, 2022 10:08
@zeppelin zeppelin changed the title Inline ember metal stuff to make Embroider happy Use require instead of import to make Embroider happy Oct 24, 2022
@zeppelin zeppelin self-assigned this Oct 24, 2022
@zeppelin zeppelin force-pushed the inline-ember-interal-utils branch 2 times, most recently from 2d9c218 to 2e36134 Compare November 4, 2022 14:06
@zeppelin zeppelin force-pushed the inline-ember-interal-utils branch from 2e36134 to cf64274 Compare November 4, 2022 14:31
Copy link
Member

@dbendaou dbendaou left a comment

Choose a reason for hiding this comment

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

Yayyy 🥳

@dbendaou
Copy link
Member

dbendaou commented Nov 4, 2022

With this, we should now be compatible with Embroider, right?

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.

2 participants