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

set NODE_ENV=production for volar #218

Merged
merged 2 commits into from
Feb 5, 2024
Merged

set NODE_ENV=production for volar #218

merged 2 commits into from
Feb 5, 2024

Conversation

rchl
Copy link
Member

@rchl rchl commented Feb 3, 2024

Using Volar in a project with latest Vue version (2.7.16) reveals an issue when using transition element that is caused by the fact that @vue/compiler-dom runs in a non-production mode.

Volar VSCode extension doesn't show this issue because it bundles its whole code with NODE_ENV set to "production". We could do the same in this package which would make installation faster, server code smaller and would not require running npm install (which can avoid some problems) but that's more effort.

See also vuejs/language-tools#3881 for more detailed explanation of the issue.

@rchl rchl merged commit 10bef6c into master Feb 5, 2024
@rchl rchl deleted the fix/set-env branch February 5, 2024 13:34
@rchl
Copy link
Member Author

rchl commented Feb 5, 2024

Note that we could not avoid npm install entirely as we'd also need to include typescript in the dependencies.

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.

2 participants