Skip to content

feat: locals convention for css modules#5901

Open
dword-design wants to merge 6 commits intovuejs:masterfrom
dword-design:css-modules-locals-convention
Open

feat: locals convention for css modules#5901
dword-design wants to merge 6 commits intovuejs:masterfrom
dword-design:css-modules-locals-convention

Conversation

@dword-design
Copy link

Resolves #5900.

"@vue/compiler-dom": "^3.5.0",
"@vue/shared": "^3.5.0",
"alien-signals": "^3.0.0",
"lodash.camelcase": "^4.3.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use import { camelize } from "@vue/shared"; instead.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized that @vue/shared camelize works a bit different from lodash.camelcase. My tests using underscores failed. While I like to reuse deps, in this case it should work the same way as postcss-modules, which uses lodash.camelcase 🙂 🐫🐫🐫.

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.

Support CSS modules localsConvention

2 participants