Skip to content

Commit

Permalink
Update importAnalysis.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Sep 24, 2023
1 parent f66ba5c commit 8509b58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vite/src/node/plugins/importAnalysis.ts
Expand Up @@ -425,10 +425,11 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {
ss: expStart,
se: expEnd,
d: dynamicIndex,
// #2083 User may use escape path,
// so use imports[index].n to get the unescaped string
a: assertIndex,
} = importSpecifier

// #2083 User may use escape path,
// so use imports[index].n to get the unescaped string
let specifier = importSpecifier.n

const rawUrl = source.slice(start, end)
Expand Down

0 comments on commit 8509b58

Please sign in to comment.