Skip to content

Conversation

skirtles-code
Copy link
Contributor

Closes #554.

The built-in components need to be imported to use them with a render function or <component :is="...">.

Despite appearing to be globally registered, they aren't. Instead, the template compiler has special handling to allow them to be used without global registration, allowing for tree-shaking. This makes it not immediately obvious how to use them in other scenarios.

Copy link
Member

@bencodezen bencodezen left a comment

Choose a reason for hiding this comment

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

Awesome additions @skirtles-code! I left a few comments that I think are worth discussing before merging, but otherwise can't wait to get this out to everyone!

@skirtles-code
Copy link
Contributor Author

@bencodezen Thanks. I've merged all of your suggestions.

Copy link
Member

@bencodezen bencodezen left a comment

Choose a reason for hiding this comment

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

Looks great. Ship it! 🙌

@skirtles-code skirtles-code merged commit 588c1f6 into vuejs:master Apr 4, 2021
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.

Using a builtin tree-shakable component like <transition> in a dynamic component requires manual import.
2 participants