Skip to content

Commit

Permalink
fix: 错误执行两次write
Browse files Browse the repository at this point in the history
  • Loading branch information
xuasir committed Mar 17, 2021
1 parent fa094ca commit 3b4df33
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/plugin-cmd-roll-lib/src/bundler/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ async function doBuild(ops: IRollupBuildOps) {
chalk.green(`[${isWrite ? 'Write' : 'Generate'}] ${output.format}`)
)
await bundler[isWrite ? 'write' : 'generate'](output)
await bundler.write(output)
}
await bundler.close()
}
Expand Down

0 comments on commit 3b4df33

Please sign in to comment.