unresolved imports contains file imports with resourceQuery (e.g. 'filename.ext?query') #113
Comments
Is that even valid? I'm curious, why would you want to import using a query? What's the use case of that? Happy to add support if it's indeed a valid import pattern. |
Eslint simply strips the resource query, we should do the same: |
@smeijer some lib recommands to call webpack loader in the code file. And sometimes, there are plugins in the query parameters of the import. This is my case with this lib : https://github.com/jgranstrom/sass-extract-loader. It causes "unresolved imports". |
same issue with "something.service.ts" for example. Which is very valid no? |
This can be resolved using a path transform in {
"pathTransforms": {
"(.*)\\?(?:.*)$": "$1"
}
} It seemingly only works after running |
I went back to it, bumping to node 20 fixed it?? |
This project is being archived. Please check the readme for more info. |
Consider the following import:
import ImgAsComponent from 'img/thing.svg?component';
As no alias or pattern ignore or wildcards apply for unresolved imports, these imports will be reported, and no configuration can help this
The text was updated successfully, but these errors were encountered: