We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
customMatcher
Describe the bug I can't get the plugin to work when i specify customMatcher such as:
{ "name": "typescript-plugin-css-modules", "customMatcher": "\\.css$" }
When i leave it off then everything works fine.
To Reproduce Add "customMatcher": "\\.css$" and use a filename without the .module part (justAFile.css)
"customMatcher": "\\.css$"
.module
justAFile.css
Additional context I quickly browsed the source and noticed that isRelativeCSS helper actually uses the default isCSS predicate: https://github.com/mrmckeb/typescript-plugin-css-modules/blob/develop/src/helpers/cssExtensions.ts#L6. I guess passing overwritten isCSS to isRelativeCSS would solve this issue.
isRelativeCSS
isCSS
Will look into that later in the evening and submit PR if that is the case 😃
BTW. nice plugin!
The text was updated successfully, but these errors were encountered:
Improve customMatcher support
a739deb
fixes mrmckeb#7
Thanks again @fmal. This is now released.
On your other issue, I think we can discuss here: #10.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I can't get the plugin to work when i specify
customMatcher
such as:When i leave it off then everything works fine.
To Reproduce
Add
"customMatcher": "\\.css$"
and use a filename without the.module
part (justAFile.css
)Additional context
I quickly browsed the source and noticed that
isRelativeCSS
helper actually uses the defaultisCSS
predicate: https://github.com/mrmckeb/typescript-plugin-css-modules/blob/develop/src/helpers/cssExtensions.ts#L6. I guess passing overwrittenisCSS
toisRelativeCSS
would solve this issue.Will look into that later in the evening and submit PR if that is the case 😃
BTW. nice plugin!
The text was updated successfully, but these errors were encountered: