We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76b96f0 commit f0ac437Copy full SHA for f0ac437
packages/vite/src/node/plugins/css.ts
@@ -2376,6 +2376,11 @@ const makeModernScssWorker = (
2376
const resolved = await internalCanonicalize(url, importer)
2377
if (
2378
resolved &&
2379
+ // only limit to these extensions because:
2380
+ // - for the `@import`/`@use`s written in file loaded by `load` function,
2381
+ // the `canonicalize` function of that `importer` is called first
2382
+ // - the `load` function of an importer is only called for the importer
2383
+ // that returned a non-null result from its `canonicalize` function
2384
(resolved.endsWith('.css') ||
2385
resolved.endsWith('.scss') ||
2386
resolved.endsWith('.sass'))
0 commit comments