-
Notifications
You must be signed in to change notification settings - Fork 137
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
Generated output with staticHelpers: true
seems invalid
#714
Comments
That |
That certainly looks weird, but I will point out that using Right now if you try it after a template has evaluated that uses the given helper, it will work. If you try it before any template that uses the helper evalutes, it will not. In upcoming releases we will take advantage of ember's template lexical scope and then it will never work -- the helper will never be registered with the runtime AMD loader. |
@ef4 - This is the resolver resolving the helper (ember-strict-resolver does much much less than |
No, it does go through the resolver internally. I just mean people shouldn't rely on looking in requirejs.entries themselves. |
Yes, totally agreed! |
Yes, to clarify, that has nothing to do with manually using |
Forked this out from stefanpenner/ember-strict-resolver#45
When building an app with strict helpers, I noticed that e.g.
require('helper:page-title')
would not return the normal module with a default property, but directly return the default export itself (!?). Not sure what exactly is going on, but after some digging I noticed this small difference in output:With
staticHelpers: true
With
staticHelpers: false
Notice the space after default in the first example.
The text was updated successfully, but these errors were encountered: