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

Fix vue 2.x selection logic #508

Merged
merged 2 commits into from
Oct 6, 2022
Merged

Fix vue 2.x selection logic #508

merged 2 commits into from
Oct 6, 2022

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Oct 5, 2022

Fixes: #506

This corrects the vue 2.6 / 2.7 logic, and also finds a slightly-better way to handle module resolution from within builder-vite when running examples. Instead of adding dev dependencies into the builder, this sets a node_path environment variable, so that the node_modules of the example is used as a global lookup from within the builder.

@IanVS IanVS requested a review from joshwooding October 5, 2022 20:26
@IanVS IanVS force-pushed the fix/vue2-7-detection branch from 1e0f7b4 to c9780ee Compare October 5, 2022 20:31
@IanVS IanVS force-pushed the fix/vue2-7-detection branch from c9780ee to ee158fd Compare October 5, 2022 20:32
@IanVS IanVS merged commit e348165 into main Oct 6, 2022
@IanVS IanVS deleted the fix/vue2-7-detection branch October 6, 2022 01:32
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.

[Bug] Can't import @vitejs/plugin-vue2 properly when using vue2.7
2 participants