Skip to content

Commit

Permalink
fix(vue): re-add cjs export
Browse files Browse the repository at this point in the history
  • Loading branch information
bnachtweh committed Jun 17, 2024
1 parent 7192d1a commit d2e73b3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/vue/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ const outputConfigs = {
format: 'es',
sourcemap: true,
},
cjs: {
dir: 'dist/',
entryFileNames: '[name].cjs.js',
chunkFileNames: '[name]-[hash].cjs.js',
format: 'cjs',
generatedCode: {
constBindings: true,
},
sourcemap: true,
},
};

const createConfig = (_, output) => {
Expand Down

0 comments on commit d2e73b3

Please sign in to comment.