Skip to content

Commit

Permalink
feat: rename __viteFile to __viteMapDep
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Aug 2, 2022
1 parent 8932e35 commit f2f547a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/plugins/importAnalysisBuild.ts
Expand Up @@ -476,7 +476,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {
deps.size > 1 ||
// main chunk is removed
(hasRemovedPureCssChunk && deps.size > 0)
? `__viteFile([${[...deps].join(',')}])`
? `__viteMapDep([${[...deps].join(',')}])`
: `[]`,
{ contentOnly: true }
)
Expand All @@ -486,7 +486,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {
}

s.append(`\
function __viteFile(indexes) {
function __viteMapDep(indexes) {
const deps = ${JSON.stringify(
fileDeps.map((fileDep) =>
relativePreloadUrls ? path.relative(path.dirname(file), fileDep) : fileDep
Expand Down

0 comments on commit f2f547a

Please sign in to comment.