Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix-sass-canonicalize-non-css' i…
Browse files Browse the repository at this point in the history
…nto fix-sass-canonicalize-non-css
  • Loading branch information
hi-ogawa committed Dec 16, 2024
2 parents 3e5ea27 + f0ac437 commit c28df71
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 @@ -2382,6 +2382,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 c28df71

Please sign in to comment.