Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
Co-authored-by: 翠 / green <[email protected]>
  • Loading branch information
hi-ogawa and sapphi-red authored Dec 16, 2024
1 parent 76b96f0 commit f0ac437
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/vite/src/node/plugins/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2376,6 +2376,11 @@ const makeModernScssWorker = (
const resolved = await internalCanonicalize(url, importer)
if (
resolved &&
// only limit to these extensions because:
// - for the `@import`/`@use`s written in file loaded by `load` function,
// the `canonicalize` function of that `importer` is called first
// - the `load` function of an importer is only called for the importer
// that returned a non-null result from its `canonicalize` function
(resolved.endsWith('.css') ||
resolved.endsWith('.scss') ||
resolved.endsWith('.sass'))
Expand Down

0 comments on commit f0ac437

Please sign in to comment.