You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In config, passing importer as an array does nothing: css: { preprocessorOptions: { sass: { importer: [SomeFunction, OtherFunction] } } }
Passing single function works as intended.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Provide a description in this issue that describes the bug.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
This change allows passing an array with multiple custom importers.
JavaScript does not mind passing `undefined` to concat, so additional checks are not needed. In that case shallow copy is created, but it does not matter here.
Closesvitejs#3526.
j000
added a commit
to j000/vite
that referenced
this issue
May 24, 2021
This change allows passing an array with multiple custom importers.
JavaScript does not mind passing `undefined` to concat, so additional checks are not needed. In that case shallow copy is created, but it does not matter here.
Closesvitejs#3526.
In config, passing importer as an array does nothing:
css: { preprocessorOptions: { sass: { importer: [SomeFunction, OtherFunction] } } }
Passing single function works as intended.
#3395 introduced this part of code:
https://github.com/axe-me/vite/blob/465ee5a453579517fa7887f1c9c2b66614270bdc/packages/vite/src/node/plugins/css.ts#L932-L936
Array.concat does not modify source array but returns a modified one. Here it's not assigned to anything.
BTW Thank you, for a nice and useful piece of software :)
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: yarn
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: