vuex
vuex copied to clipboard
feat: add named export in cjs format file
export default has many bugs when mixed with commonjs, vuex use export default object in vuex.cjs.js which behavior is not like vue-router-next. It cause the below code cannot get correct value in the lastest vite version
import { createStore } from 'vuex'
console.log(createStore === undefined)
vuex.cjs.js export code

vue-router-next export code

cc @kiaking , the problem affect users who used the latest vite in ssr