Skip to content

Commit

Permalink
chore: revert importAnalysisBuild change
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Jun 26, 2022
1 parent 6fcf321 commit c234e12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vite/src/node/plugins/importAnalysisBuild.ts
Expand Up @@ -315,7 +315,10 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {
}

if (s) {
return transformStableResult(s, importer, config)
return {
code: s.toString(),
map: config.build.sourcemap ? s.generateMap({ hires: true }) : null
}
}
},

Expand Down

0 comments on commit c234e12

Please sign in to comment.