Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function createStore( services: ServiceContainer ): Store {
const store = smartCreateStore( rootModule, {
strict: process.env.NODE_ENV !== 'production',
plugins: [ mutationsTrackerPlugin( services.get( 'tracker' ) ) ],
} );
store.$services = services;
return store;
}
return () => {
Vue.use( Vuex );
rootModule.options.state = class {
constructor() {
Object.assign( this, state );
}
};
const store = smartCreateStore( rootModule );
return {
store,
template: '',
};
};
}