-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add an import resolver for tilde (~) node_modules imports #277
Comments
Hey @GitGangGuy 👋 I think it's possible to add a custom |
@kaisermann Thank you for addressing this! |
It seems sass doesn't pass an importer returned value through the Edit: |
@kaisermann I use dart |
@GitGangGuy AFIK both |
The PR was merged, why is this issue still open? ^^ |
I know that svelte-preprocess adds
node_modules
to the scss/sassincludePaths
automatically, but this will only resolve import/use statements in the form ofmodule/...
, not~module/...
, which has become a standard for importing modules in scss. Even VSCode will highlight and link paths relative tonode_modules
when prefixing them with a tilde (a path without one will however not be resolved correctly).Would it be possible to treat tilde-prefixed paths as relative to
node_modules
as well, like a lot of webpack plugins have been doing already?The text was updated successfully, but these errors were encountered: