-
Notifications
You must be signed in to change notification settings - Fork 75
Conversation
73efef2
to
13e58b7
Compare
* | ||
* The CompileTimeResolver is responsible for registering everything but root | ||
* components, which is why `registry` is public, for ease of access. | ||
* Resolution for non built ins is now handled by the vm as we are using strict mode | ||
*/ | ||
export class RuntimeResolver implements VMRuntimeResolver { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should look into making these optional now tbh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
if (DEBUG) { | ||
createTemplate = (): CustomSerializedTemplate => { | ||
createTemplate = (): SerializedTemplateWithLazyBlock => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably rename/alias this to precompileTemplate
, to match the original RFC. We can do that in a follow on, just noting for the 2.0 release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
template: SerializedTemplateWithLazyBlock, | ||
ComponentClass: object | ||
): object { | ||
return vmSetComponentTemplate(templateFactory(template), ComponentClass); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should likely update babel transforms to make this unnecessary, the VM version matches the public API version in Ember, so it'd be good to make sure they stay aligned. Again, fine to do in a followup, and if the motivation is to save bytes we could expose a different compile-target function that does this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How