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

Updating glimmer-vm to 0.73.0 #324

Merged
merged 1 commit into from Dec 21, 2020
Merged

Conversation

chiragpat
Copy link
Contributor

How

  • Removed implementations and tests of things that have been upstreamed into the vm
  • The resolver returns null for all methods as we are using strict mode which will handle all resolution logic
  • Updated babel-plugin to pass in locals into the precompile step

*
* 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 {
Copy link
Member

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

Copy link
Member

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 => {
Copy link
Member

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.

Copy link
Member

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);
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

@pzuraq pzuraq merged commit 58aa121 into glimmerjs:master Dec 21, 2020
@chiragpat chiragpat deleted the glimmer-vm-bump branch December 22, 2020 00:07
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.

None yet

2 participants