Skip to content

Commit

Permalink
Merge pull request #42 from tkiefer24/fix/commonjs-build
Browse files Browse the repository at this point in the history
Fix to allow commonjs build for legacy integration
  • Loading branch information
alexander-heimbuch authored Nov 2, 2024
2 parents 180bf4f + 1ae3c50 commit b5e12d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@
"vue": "3.x"
},
"module": "./dist/redux-vuex.es.js",
"main": "./dist/redux-vuex.cjs.js",
"types": "./dist/typings/index.d.ts",
"exports": {
".": {
"import": "./dist/redux-vuex.es.js",
"require": "./dist/redux-vuex.cjs.js",
"types": "./dist/typings/index.d.ts"
}
},
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import vue from '@vitejs/plugin-vue';
export default defineConfig({
build: {
lib: {
formats: ['es'],
formats: ['es', 'cjs'],
entry: resolve(__dirname, 'src', 'index.ts'),
name: 'ReduxVuex',
fileName: (format) => `redux-vuex.${format}.js`,
Expand Down

0 comments on commit b5e12d4

Please sign in to comment.