-
Notifications
You must be signed in to change notification settings - Fork 21
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
Namespaced modules' path broken when code is minified #43
Comments
For now define your stores the old way: @Module({ namespacedPath: "foo" })
export default class extends VuexModule { } You can still define your Vuex-store the new way: import FooStore from "@/foo/store";
const modules = { ...extractVuexModule(FooStore) };
export const store = new Vuex.Store({ modules }); |
From vuex-class-component/src/module.ts Line 89 in 24ed31b
I think you setting
|
works perfectly now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
While using version
2.0.4
, module declaration is kind of broken in minified code due to the path being pulled from the class' name.Problem is, the class name is being mangled while using
vue-cli
in its default configuration.The result (for me) is that my store only has a single module (named
t
in my output), even if I declare several modules. This single module contains everystate property
of my modules but only themutations
andactions
of the last declared one.The text was updated successfully, but these errors were encountered: