-
Notifications
You must be signed in to change notification settings - Fork 40
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
Strip ~
from import/use/forward statements
#114
Comments
~ imports are supported out of the box as you can see here:
what is not immediate but still supported is to have css imports using tilde as seen here: #74 but also this might help: #39 if that still doesn't work feel free to reopen this issue provided an example repo where the ~ import is an issue |
I'll put together a repl.it for the failing case I ran into. |
@glromeo I believe this has to do with the esbuild The build target is in the To run, enter the following commands in the
The build config is in the Edit Looking at the source, it appears that esbuild-sass-plugin/src/utils.ts Lines 11 to 23 in bc44529
build.options.absWorkingDir and that is likely the root cause. Other plugins have been bitten by the same bug e.g. https://github.com/egoist/esbuild-plugin-vue/pull/5/files
|
fix: use absWorkingDir as root if provided. fixes #114
Hey there. Thanks for this plugin.
It's unfortunately common for folks to use a tilde
~
in import statements, which this plugin doesn't yet support. That ends up throwing a build error. Packages like https://www.npmjs.com/package/@ircc-ca/ds-sdc-core use this, and it's so common that webpack's loader accounts for this.sass/dart-sass#801 covers this as well, and the recommendation is to remove the
~
.Any chance this could be supported?
The text was updated successfully, but these errors were encountered: