-
Notifications
You must be signed in to change notification settings - Fork 86
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
Expose importer in resolve method #131
Comments
The resolver method should also be passed when resolving nested dependencies, currently the following case is impossible to do: Let's say that the project root is also aliased to /* styles/controls.css */
.control {
border-radius: 4px;
/* ... */
}
/* components/Button/Button.module.css */
.button {
composes: control from '~/styles/controls.css';
/* ... */
}
/* components/Menu/MenuItem.module.css */
.button {
composes: button from '~/components/Button/Button.module.css';
/* ... */
}
|
@madyankin @intrnl created a PR for this: #142 which implements this behavior in a non-breaking way. |
The resolve method should be given the filename that triggered the resolve, this is necessary especially for nested imports where the file could be located somewhere else.
The text was updated successfully, but these errors were encountered: