Skip to content

Commit

Permalink
feat: update default source-map type
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyuang committed Oct 23, 2024
1 parent b474e2b commit 4f0543d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/preprocess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const handleEnv = async (argv: Argv) => {
process.env.SSG = '1'
}
if (isDev) {
process.env.GENERATE_SOURCEMAP = clientPrefix ? 'inline-source-map' : 'source-map'
process.env.GENERATE_SOURCEMAP = clientPrefix ? 'inline-cheap-module-source-map' : 'cheap-module-source-map'
}
if (argv.sourcemap) {
process.env.GENERATE_SOURCEMAP = argv.sourcemap
Expand Down
4 changes: 3 additions & 1 deletion scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ async function main (): Promise<void> {
pkgName
]
await run('npx', changelogArgs, { cwd: pkgDir })
await runIfNotDry('git', ['tag', tag])
await runIfNotDry('git', ['tag', tag]).catch((err) => {
console.error(err)
})
tags.push(tag)
}

Expand Down

0 comments on commit 4f0543d

Please sign in to comment.