René's URL Explorer Experiment


Title: CSS modules transform produces invalid output with certain class names · Issue #31 · unplugin/unplugin-lightningcss · GitHub

Open Graph Title: CSS modules transform produces invalid output with certain class names · Issue #31 · unplugin/unplugin-lightningcss

X Title: CSS modules transform produces invalid output with certain class names · Issue #31 · unplugin/unplugin-lightningcss

Description: Describe the bug The recent PR #22 added css-modules support, but the code exporting classnames is missing the fact that class names are not a good fit for JS variables: https://github.com/nicksrandall/unplugin-lightningcss/blob/01f1d485...

Open Graph Description: Describe the bug The recent PR #22 added css-modules support, but the code exporting classnames is missing the fact that class names are not a good fit for JS variables: https://github.com/nicksran...

X Description: Describe the bug The recent PR #22 added css-modules support, but the code exporting classnames is missing the fact that class names are not a good fit for JS variables: https://github.com/nicksran...

Opengraph URL: https://github.com/unplugin/unplugin-lightningcss/issues/31

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CSS modules transform produces invalid output with certain class names","articleBody":"### Describe the bug\n\nThe recent PR #22 added css-modules support, but the code exporting classnames is missing the fact that class names are not a good fit for JS variables:\n\nhttps://github.com/nicksrandall/unplugin-lightningcss/blob/01f1d485ab119d213b955b69ac3c5065d83875e9/src/core/transform.ts#L49-L54\n\n\nThis causes CSS such like:\n\n```css\n.my-class {...}\n```\n\nTo fail build due to the error like so:\n```\n\n 2 │ export const my-class = \"G6CPCq_my-class\";\n   │                    │ \n   │                    ╰─ \n   │ \n   │ Help: Try insert a semicolon here\n```\n\n### Reproduction\n\nSee above\n\n### System Info\n\n```Shell\nAny system\n```\n\n### Used Package Manager\n\nnpm\n\n### Validations\n\n- [x] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md)\n- [x] Read the [Contributing Guide](https://github.com/antfu/contribute).\n- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.\n- [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.\n- [x] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.","author":{"url":"https://github.com/OEvgeny","@type":"Person","name":"OEvgeny"},"datePublished":"2025-05-21T00:20:33Z","url":"https://github.com/unplugin/unplugin-lightningcss/issues/31"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bc798fcb-93b4-544d-3b0d-c79da1bc5a7e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD172:210CB4:4013EA:59FBF9:6B00717A
html-safe-nonce7201fa2bb08d7ec34c034da08801f1e83b32883ff8d0af6f158fdb63a07ea7f9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTcyOjIxMENCNDo0MDEzRUE6NTlGQkY5OjZCMDA3MTdBIiwidmlzaXRvcl9pZCI6IjQ4NjE4MzAxNTQzNzg1NzE0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacabe642704365c3205ee4da150b8bedf34d33f792466c82bcb420b9a037462ec6
hovercard-subject-tagissue:3078510763
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/unplugin/unplugin-lightningcss/31/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cba7d074424a08140a441cdfc8538496002eef19b9ce493dc7012a9cabf9b2bc/unplugin/unplugin-lightningcss/issues/31
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cba7d074424a08140a441cdfc8538496002eef19b9ce493dc7012a9cabf9b2bc/unplugin/unplugin-lightningcss/issues/31
og:image:altDescribe the bug The recent PR #22 added css-modules support, but the code exporting classnames is missing the fact that class names are not a good fit for JS variables: https://github.com/nicksran...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameOEvgeny
hostnamegithub.com
expected-hostnamegithub.com
None75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16
turbo-cache-controlno-preview
go-importgithub.com/unplugin/unplugin-lightningcss git https://github.com/unplugin/unplugin-lightningcss.git
octolytics-dimension-user_id143585159
octolytics-dimension-user_loginunplugin
octolytics-dimension-repository_id677769344
octolytics-dimension-repository_nwounplugin/unplugin-lightningcss
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id677769344
octolytics-dimension-repository_network_root_nwounplugin/unplugin-lightningcss
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84e563eb4b55f8fa102f325f117533cee9e3df4a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/unplugin/unplugin-lightningcss/issues/31#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Funplugin%2Funplugin-lightningcss%2Fissues%2F31
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Funplugin%2Funplugin-lightningcss%2Fissues%2F31
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=unplugin%2Funplugin-lightningcss
Reloadhttps://github.com/unplugin/unplugin-lightningcss/issues/31
Reloadhttps://github.com/unplugin/unplugin-lightningcss/issues/31
Reloadhttps://github.com/unplugin/unplugin-lightningcss/issues/31
unpluginhttps://github.com/unplugin
unplugin-lightningcsshttps://github.com/unplugin/unplugin-lightningcss
Codehttps://github.com/unplugin/unplugin-lightningcss
Issues1 (1)https://github.com/unplugin/unplugin-lightningcss/issues
Pull requests3 (3)https://github.com/unplugin/unplugin-lightningcss/pulls
Actionshttps://github.com/unplugin/unplugin-lightningcss/actions
Projectshttps://github.com/unplugin/unplugin-lightningcss/projects
Security and qualityhttps://github.com/unplugin/unplugin-lightningcss/security
Insightshttps://github.com/unplugin/unplugin-lightningcss/insights
https://github.com/unplugin/unplugin-lightningcss
New issuehttps://github.com/login?return_to=https://github.com/unplugin/unplugin-lightningcss/issues/31
New issuehttps://github.com/login?return_to=https://github.com/unplugin/unplugin-lightningcss/issues/31
CSS modules transform produces invalid output with certain class nameshttps://github.com/unplugin/unplugin-lightningcss/issues/31#top
https://github.com/OEvgeny
OEvgenyhttps://github.com/OEvgeny
on May 21, 2025https://github.com/unplugin/unplugin-lightningcss/issues/31#issue-3078510763
#22https://github.com/unplugin/unplugin-lightningcss/issues/22
https://github.com/nicksrandall/unplugin-lightningcss/blob/01f1d485ab119d213b955b69ac3c5065d83875e9/src/core/transform.ts#L49-L54https://github.com/nicksrandall/unplugin-lightningcss/blob/01f1d485ab119d213b955b69ac3c5065d83875e9/src/core/transform.ts#L49-L54
Code of Conducthttps://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md
Contributing Guidehttps://github.com/antfu/contribute
minimal reproduciblehttps://stackoverflow.com/help/minimal-reproducible-example
https://github.com/OEvgeny
OEvgenyhttps://github.com/OEvgeny
on May 21, 2025https://github.com/unplugin/unplugin-lightningcss/issues/31#issuecomment-2896121836
@sxzzhttps://github.com/sxzz
https://github.com/sxzz
sxzzhttps://github.com/sxzz
on May 21, 2025https://github.com/unplugin/unplugin-lightningcss/issues/31#issuecomment-2898380814
https://github.com/unplugin/unplugin-oxc/blob/43301e27ba276d50b8e9068b874b7287ebfe1746/src/index.ts#L109-L117https://github.com/unplugin/unplugin-oxc/blob/43301e27ba276d50b8e9068b874b7287ebfe1746/src/index.ts#L109-L117
https://github.com/OEvgeny
OEvgenyhttps://github.com/OEvgeny
on May 21, 2025https://github.com/unplugin/unplugin-lightningcss/issues/31#issuecomment-2898701888
@sxzzhttps://github.com/sxzz
sxzzhttps://github.com/sxzz
completedhttps://github.com/unplugin/unplugin-lightningcss/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 22, 2025https://github.com/unplugin/unplugin-lightningcss/issues/31#event-17764504228
Sign up for freehttps://github.com/signup?return_to=https://github.com/unplugin/unplugin-lightningcss/issues/31
Sign in to commenthttps://github.com/login?return_to=https://github.com/unplugin/unplugin-lightningcss/issues/31
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.