Commit c596cd4
fix: use regex includes in webpack CSS rules for highlight.js
The previous commit added highlight.js to the path-string include list
but path.resolve string comparison was not matching subdirectories
reliably. Switch both prod and dev CSS rules to use regex includes
(/node_modules[\\/]highlight\.js/ and /node_modules[\\/]@patternfly[\\/]chatbot/)
which unambiguously match the module paths webpack resolves.
Build now passes with 0 errors (TypeScript 6.0.3, ignoreDeprecations: "6.0").
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 0efc8b4 commit c596cd4
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments