Skip to content

Commit

Permalink
fix: 修复 rollup 构建后文件名不正确的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcome committed Mar 28, 2023
1 parent 962966b commit e2fa629
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ export default {
format: 'esm',
dir: 'dist-mjs',
entryFileNames: '[name].mjs',
chunkFileNames: '[name].mjs',
sourcemap: true,
},
{
format: 'cjs',
dir: 'dist-cjs',
entryFileNames: '[name].cjs',
chunkFileNames: '[name].cjs',
sourcemap: true,
},
],
Expand Down

0 comments on commit e2fa629

Please sign in to comment.