cli: fix cannot generate map to debugging

This commit is contained in:
pengfei.zhou 2022-07-15 19:50:09 +08:00 committed by osborn
parent fda2a9a02c
commit b5ec211c6c

View File

@ -77,7 +77,7 @@ export async function mergeMap(mapFile: string) {
}
await fs.promises.writeFile(lockFile, (new Date).toString(), "utf-8")
try {
const buildMap = mapFile.replace(/bundle\//, 'build/')
const buildMap = mapFile.replace(/bundle\//, '.dxx/')
if (fs.existsSync(buildMap)) {
const mergedMap = createMergedSourceMapFromFiles([
buildMap,