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 Proxy for motion component generation #511

Closed
wants to merge 4 commits into from

Conversation

mattgperry
Copy link
Collaborator

@mattgperry mattgperry commented Apr 17, 2020

Currently, components like motion.div are generated from an explicit list of HTML and SVG elements. This PR replaces this with a Proxy that can dynamically create motion components for any motion.. This reduces the generated bundle size by 0.5kb. With improved types we can extend this approach to support all custom Web Components.

Note
This is currently blocked by a bug in api-extractor

@mattgperry mattgperry closed this May 8, 2020
@mattgperry mattgperry deleted the feature/minish branch May 8, 2020 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant