You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add custom import resolvers for the synchronous bundle() API?
Background:
I have created an ESLint Plugin that auto-fixes tailwindcss classes with the goal to make them more readable. Now I want to support tailwindcss 4 and its css based configuration.
The import specifier tailwindcss cannot be resolved directly because it is not located in the same directory as the user config. Therefore, I need a way to implement the node module resolution algorithm.
While the asynchronous bundleAsync() function supports this via the resolver property, the synchronous bundle() function currently lacks this capability.
The text was updated successfully, but these errors were encountered:
Would it be possible to add custom import resolvers for the synchronous
bundle()
API?Background:
I have created an ESLint Plugin that auto-fixes tailwindcss classes with the goal to make them more readable. Now I want to support tailwindcss 4 and its css based configuration.
ESLint does not support async rules, so I need a way to load the css config synchronously. Since tailwindcss 4 will also shift to lightningcss, I would also like to use lightningcss for that.
Based on the tailwindcss 4 announcement blog post, the import of the tailwindcss utilities will look like this:
The import specifier
tailwindcss
cannot be resolved directly because it is not located in the same directory as the user config. Therefore, I need a way to implement the node module resolution algorithm.While the asynchronous
bundleAsync()
function supports this via theresolver
property, the synchronousbundle()
function currently lacks this capability.The text was updated successfully, but these errors were encountered: