-
-
Notifications
You must be signed in to change notification settings - Fork 430
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
importers don't work with api: 'modern' #1031
Comments
Yes, we should remove https://github.com/webpack-contrib/sass-loader/blob/master/src/utils.js#L230, we can't proxy new importer API |
Fix here #1052, I tried to implement basic async loader for tests and example, but no luck, looks like new API is broken and tried to use examples, but no luck too, even more no one tool migrate on new API, so I strongly recommend do not use it today |
Yeah I've tried to use it without webpack but seems pretty useless because it still looks for the file on disk before calling load, so you can't use it to intercept existing sass files. |
Yep, I tried to use it in tests to just load content, importer call my |
Bug report
proxyCustomImporters
is only valid for legacy importers as it always returns a function, modern importers need to be an object with methods.Actual Behavior
Expected Behavior
It should tho
How Do We Reproduce?
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: