Skip to content

Commit

Permalink
refactor: shorten variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Aug 2, 2022
1 parent d1bfe1f commit 8932e35
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 @@ -487,12 +487,12 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {

s.append(`\
function __viteFile(indexes) {
const fileDeps = ${JSON.stringify(
const deps = ${JSON.stringify(
fileDeps.map((fileDep) =>
relativePreloadUrls ? path.relative(path.dirname(file), fileDep) : fileDep
)
)}
return indexes.map((index) => fileDeps[index])
return indexes.map((i) => deps[i])
}`)

// there may still be markers due to inlined dynamic imports, remove
Expand Down

0 comments on commit 8932e35

Please sign in to comment.