We've got some custom import configuration that needs to be handled outside of this plugin's SASS Loader. In reading the documentation, it appears that we can pass our own SASS importer into the plugin as an option. However, when it fails to pass the regex on https://github.com/egoist/rollup-plugin-postcss/blob/master/src/sass-loader.js#L42 it returns the same file (which doesn't let Node SASS move on to the next importer).
Node SASS says this in their documentation:
importer can be an array of functions, which will be called by LibSass in the order of their occurrence in array. This helps user specify special importer for particular kind of path (filesystem, http). If an importer does not want to handle a particular path, it should return null. See functions section for more details on Sass types.
See their README
The way the SASS loader is written passes this.options.importers
to Node SASS, it just won't be called when the import doesn't match your regex. Was this intentional?
We can always specify our own loader instead of using SASS loader but it seems a bit redundant.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too