Skip to content

Commit

Permalink
fix: disable dts generate for watch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
longgui.wjb committed Jan 27, 2022
1 parent 842aca9 commit 3ad1a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/middleware-rollup/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const handler: Handler<IOpts> = options => {
const mergedBundleOpts = merge(bundleOpts, customBundleOpts) as IBundleOptions;
// 生成单入口单格式构建任务
totalTasks.push(...getTasks(entry, mergedBundleOpts));
if (mergedBundleOpts.generateDts) {
if (!opts.watch && mergedBundleOpts.generateDts) {
totalTasks.push(cb => {
buildDts(
{
Expand Down

0 comments on commit 3ad1a5c

Please sign in to comment.