fix(resolve): use different importer check for css imports #12815
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This should fix the ecosystem CI failures using the vue jsx plugin. Alternative fix for #12796.
Previously, the checking method would convert
basedir
of/__vue-jsx-ssr-register-helper
to/
, which would always exist, causing issues. I've changed to check the trailing*
specifically from CSS processing to handle the issue in the linked PR above instead.CSS processing appends
*
because the tooling only provides the importer directory for resolving, which is an issue for the resolver as it expects a file.I initially tried to avoid this, but I don't think there's another safer way besides hardcoding it.
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).