Commit 5ed0cfa
fix(web): match css-loader path on Windows for .prefix.css modules
The webpack CSS-rule customization detected css-loader via
`use.loader.includes("/css-loader/")`, which only matches POSIX-style
paths. On Windows the loader path uses backslashes
(`...\node_modules\css-loader\...`), so the check never matched and the
`.prefix.css` -> CSS-modules rule (localIdentName `lsf-[local]`) was
never inserted. Every `.prefix.css` import then compiled to empty
exports ("module has no exports" warnings) and the Data Manager / editor
rendered completely unstyled on Windows.
Match both separators with `/[\\/]css-loader[\\/]/` so the rule applies
on Windows as well as POSIX. No behavior change on POSIX.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 5ed59ee commit 5ed0cfa
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
0 commit comments