Vue · Senior · Question 67 of 75

How do you build a Vue component library with Vite without bundling Vue itself?

Explanation

Bundling Vue would create two Vue instances in the consumer app, breaking reactivity and provide/inject.

Further reading

Problem with a question

Vue · Senior · question 67

Test yourself

Take the Vue · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz