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
Support lightningcss "resolver" option #16593
Comments
What is the usecase for accepting a |
The idea is to allow use of globs into the css @import './components/**/*.css'; For now it's not working at all. If I check the My guess is that the simpliest way to allow devs to support custom imports inside the lighningcss module is to pass the Unless you have another idea that I will be happy to implement and share :) |
In that case, it seems like a bug (or technically a feature request) to me to make import globs work with lightningcss. There's also a corresponding postcss feature request: #12336. If we can get this working, then I don't think we have to expose the |
Description
Hi their!
Hope you are doing well! At start, thanks for your work!
It will be nice to be able to specify the
resolver
options supported by the lightningcss compiler but that seems to be not passed and supported on the vite side...vite/packages/vite/src/types/lightningcss.d.ts
Line 13 in 6a7dde5
Suggested solution
Add the
resolver
option in theLightningCSSOptions
type as well as passing it to the lightningcss compiler.Alternative
No response
Additional context
Example of use:
Validations
The text was updated successfully, but these errors were encountered: