According to https://github.com/webpack-contrib/sass-loader#imports the "~" sign is deprecated in "style-loader". If "~" isn't specified, then it tries to resolve it as a relative path first. If it cannot be resolved, then the loader will try to resolve @import inside "node_modules".
It would be useful to support same logic for imports as implemented in "style-loader". i.e. look into "node_modules" even if "~" is not added. So that both ways to import files are supported:
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