-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
生产环境带@vue/devtools-api #1932
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
Comments
无法复现。 正常来说,Vue CLI 里实际用到的不是 如果你的项目无法正确去掉这段代码,有一个可能是你没有直接使用 vue-router,而是用了一个依赖于 vue-router 的包,那个包的导出是 cjs 格式而不是 esm,导致 webpack 无法正确 tree-shaking。 |
() Babel 3.x 确认可复现 vite创建 |
哦这个界面的数据不太准的…… |
Version
6.2.1
Browser and OS info
Chrome 62 / Windows 10
Steps to reproduce
只要带有vue-router/vuex等使用了@vue/devtools-api的包,打包之后就会有。使用@vue/cli创建的模板即可重现
What is expected?
未设置时,打包生产环境不带@vue/devtools-api
What is actually happening?
不论设置与否,打包都会带@vue/devtools-api
The text was updated successfully, but these errors were encountered: