sublimelsp / LSP-volar

Vue support for Sublime's LSP plugin
MIT License
84 stars 7 forks source link

set NODE_ENV=production for volar #218

Closed rchl closed 6 months ago

rchl commented 6 months ago

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 https://github.com/vuejs/language-tools/issues/3881 for more detailed explanation of the issue.

rchl commented 6 months ago

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