Skip to content

Commit

Permalink
feat: 生产模式下自动开启sourceMap
Browse files Browse the repository at this point in the history
  • Loading branch information
xuasir committed Mar 6, 2021
1 parent f979270 commit 30eacf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/plugin-cmd-lib/src/modify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ export const ensureOutput = (
})
}

if (isProd) {
rc.output.sourcemap(true)
}

api.logger.debug(rc.output.get('file'))
}

Expand Down

0 comments on commit 30eacf7

Please sign in to comment.