devtools
devtools copied to clipboard
@vue/devtools always included in the bundle for the production
Version
5.1.0
Browser and OS info
Chrome 74 / MacOS
Steps to reproduce
// entry.js
import devtools from '@vue/devtools' // Just import devtools without anything else
What is expected?
I was expecting that the bundle file would be empty.
What is actually happening?
The bundle includes a @vue/devtools library
This also leads to the fact that this module is included in the production bundle even in this scenario.
import devtools from '@vue/devtools'
import Vue from 'vue';
if (process.env.NODE_ENV === 'development') {
devtools.connect(/* host, port */)
}
Push! I can report the same ... 273 kb ... that's a lot ...
Any guidance on this? It's adding 450 KiB to prod 😅
Any guidance on this? It's adding 450 KiB to prod 😅
I ended up uninstalling it ...