Skip to content
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

Support styleName="blah" from babel-plugin-react-css-modules #11

Open
mo opened this issue Jul 28, 2017 · 3 comments
Open

Support styleName="blah" from babel-plugin-react-css-modules #11

mo opened this issue Jul 28, 2017 · 3 comments

Comments

@mo
Copy link

mo commented Jul 28, 2017

The "babel-plugin-react-css-modules" npm package allows you to write CSS module references using styleName="my-css-class" instead of className={styles.MyCssClass}. It would be really neat to have vscode-css-modules understand such styleName="" attributes.

Details:
https://github.com/gajus/babel-plugin-react-css-modules

@madeleineostoja
Copy link

Big 👍 this would be awesome, is there anything we could do to help move this along?

@clinyong
Copy link
Owner

clinyong commented Jun 2, 2018

Sorry, I am not using babel-plugin-react-css-modules...This plugin using regular expression to parse files, and PR is welcome...

@iChenLei
Copy link
Collaborator

If we support it, we need add jsx attributes parse(or simple understand styleName= pattern) and add new trigger char. Current implemention is trigger . character and match import file. It's simple and highly efficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants