-
Notifications
You must be signed in to change notification settings - Fork 8
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
Handle non-default exports with embroider #45
base: master
Are you sure you want to change the base?
Conversation
Can you share the "classic" vs Embroider transpilation output? |
OK, here some steps: Scenario 1: With ember-strict-resolver, embroider &
|
I have also tried to look at the generated output (for scenario 3, for what it's worth). And I noticed one small difference: With
|
yeah that seems like a bug |
Can you open an issue on Embroider repo with that last snippet? |
Cross reference: embroider-build/embroider#714 |
For whatever reason, when running this with embroider &
staticHelpers: true
, helpers are compiled slightly different. They have nodefault
export, but instead the module fromrequire(name)
contains the helper directly.This fixes the resolver by adding the same check as exists in ember-resolver to just return the module directly in this case.
I have tested this in my app and it worked fine there.
Fixes #44