Skip to content

Commit

Permalink
chore: comment typo (#7344)
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed Mar 16, 2022
1 parent 65aaeee commit 61df324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/importAnalysis.ts
Expand Up @@ -236,7 +236,7 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {
const isSelfImport = !isRelative && cleanUrl(url) === cleanUrl(importer)

// normalize all imports into resolved URLs
// e.g. `import 'foo'` -> `import '/@fs/.../node_modules/foo/index.js`
// e.g. `import 'foo'` -> `import '/@fs/.../node_modules/foo/index.js'`
if (resolved.id.startsWith(root + '/')) {
// in root: infer short absolute path from root
url = resolved.id.slice(root.length)
Expand Down

0 comments on commit 61df324

Please sign in to comment.