Skip to content

Commit

Permalink
fix(pkg): emit cjs for entry to avoid breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 7, 2022
1 parent a34831e commit 0d64253
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
declaration: true,
rollup: {
emitCJS: true
},
entries: [
'src/index',
{ input: 'src/runtime/', outDir: 'runtime', format: 'esm' },
Expand Down

0 comments on commit 0d64253

Please sign in to comment.