Skip to content

Conversation

apaleslimghost
Copy link
Member

@apaleslimghost apaleslimghost commented Apr 24, 2025

this is currently "possible", as that's just what css-loader does, but it's seemingly not compatible with the asset loader (not entirely sure why; mini-css-extract-plugin should be able to extract these and output them in the asset manifest just fine. i will do some more testing).

since this is broken, and not an intended use case, i think it's best to prevent engineers doing this, so they can get earlier feedback about something that's not going to work.

after some discussion at Dev Huddle, we came to the consensus that this is fine to release as a patch version; nobody is aware of any use of CSS imports from JS, and there was agreement that going from silently broken styles in prod to a build failure is a non-breaking change for an undocumented feature.

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.

1 participant