Skip to content

Commit c234e12

Browse files
authored
chore: revert importAnalysisBuild change
1 parent 6fcf321 commit c234e12

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/vite/src/node/plugins/importAnalysisBuild.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,10 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {
315315
}
316316

317317
if (s) {
318-
return transformStableResult(s, importer, config)
318+
return {
319+
code: s.toString(),
320+
map: config.build.sourcemap ? s.generateMap({ hires: true }) : null
321+
}
319322
}
320323
},
321324

0 commit comments

Comments
 (0)