Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Dec 13, 2024
1 parent 3b32bd9 commit 87ef05c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/plugins/importAnalysisBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {
]) as SourceMap
map.toUrl = () => genSourceMapUrl(map)

const originalDebugId = chunk.map.debugId;
const originalDebugId = chunk.map.debugId
chunk.map = map

if (buildSourcemap === 'inline') {
Expand All @@ -709,7 +709,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {
chunk.code += `\n//# sourceMappingURL=${genSourceMapUrl(map)}`
} else {
if (originalDebugId) {
map.debugId = originalDebugId;
map.debugId = originalDebugId
}
const mapAsset = bundle[chunk.fileName + '.map']
if (mapAsset && mapAsset.type === 'asset') {
Expand Down

0 comments on commit 87ef05c

Please sign in to comment.