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

docs(aliasing): update import code #16974

Merged
merged 3 commits into from
Mar 22, 2023
Merged

Conversation

santiagoaloi
Copy link
Member

Description

A minor tweak in the importing of components in devresulting in slight performance benefit.
This only affects dev mode as in prod threeshaking will automatically optimize these kind of imports.

from:

import { VBtn } from 'vuetify/components'

to:

import { VBtn } from 'vuetify/components/VBtn'

Improved tip descrption after feedback from John.
@santiagoaloi santiagoaloi changed the title Update aliasing.md docs/aliasing-component-imports (fix info tip) Mar 22, 2023
Copy link
Member

@johnleider johnleider left a comment

Choose a reason for hiding this comment

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

small tweak, otherwise lgtm

packages/docs/src/pages/en/features/aliasing.md Outdated Show resolved Hide resolved
Co-authored-by: John Leider <9064066+johnleider@users.noreply.github.com>
@santiagoaloi santiagoaloi changed the title docs/aliasing-component-imports (fix info tip) docs(aliasing): update import code Mar 22, 2023
@johnleider johnleider merged commit c7e4ae0 into master Mar 22, 2023
@johnleider johnleider deleted the docs/aliasing-component-imports branch March 22, 2023 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants