Skip to content

@pinia/root / @pinia/nuxt / ModuleOptions

ModuleOptions

Properties

disableVuex?

ts
optional disableVuex: boolean;

Pinia disables Vuex by default, set this option to false to avoid it and use Pinia alongside Vuex (Nuxt 2 only)

Default

true


storesDirs?

ts
optional storesDirs: string[];

Automatically add stores dirs to the auto imports. This is the same as directly adding the dirs to the imports.dirs option. If you want to also import nested stores, you can use the glob pattern ./stores/**

Default

['stores']

Released under the MIT License.