Skip to content

Conversation

@thecrypticace
Copy link
Contributor

If you @import "some-package" we weren't handling the style export condition. This isn't handled by postcss-import (it doesn't support reading from exports at all because the resolve package doesn't). So here we pass a custom resolve() function to handle this situation.

Fixes #933

@thecrypticace thecrypticace changed the title Resolve style exports field when processing @imports Handle style exports condition when processing @imports Mar 25, 2024
@thecrypticace thecrypticace force-pushed the fix/postcss-exports-resolve branch from e148870 to 13ec5d0 Compare March 25, 2024 18:22
@thecrypticace thecrypticace force-pushed the fix/postcss-exports-resolve branch from 629d102 to 9e86bc4 Compare March 26, 2024 14:45
@thecrypticace thecrypticace merged commit cf97d7a into master Mar 26, 2024
@thecrypticace thecrypticace deleted the fix/postcss-exports-resolve branch March 26, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v4] @import not following style specifier in exports

3 participants