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

Is there way to exclude @vue/devtools-api code from final bundle? #2243

Open
index23 opened this issue Mar 7, 2024 · 0 comments
Open

Is there way to exclude @vue/devtools-api code from final bundle? #2243

index23 opened this issue Mar 7, 2024 · 0 comments

Comments

@index23
Copy link

index23 commented Mar 7, 2024

Version

4.1.0

Reproduction link

github.com

Steps to reproduce

When using vuex in Vue application, @vue/devtools-api will always be part of final bundle.

If we take a look at vuex.cjs.js

var vue = require('vue');
var devtoolsApi = require('@vue/devtools-api');

we can conclude that @vue/devtools-api code will be part of final bundle. Tree shaking doesn't work here because adding devtools happing in runtime, during install function execution.

Is there way to exclude @vue/devtools-api code?

Steps to reproduce:

  1. Run vite build

I am using Vuex: "4.1.0"

What is expected?

There is no @vue/devtools-api code in final bundle if dev tools is disabled through bundler tool.

What is actually happening?

There is @vue/devtools-api code in final bundle.


I am using Vuex: "4.1.0"

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

No branches or pull requests

1 participant