Commit 4d9d19e
Fix CSS plugin filtering and add cache immutability docs
CSS Plugin Filtering Improvements:
1. Added CssExtractRspackPlugin to plugin filter list (line 95)
- Ensures Rspack's CSS plugin is properly removed from SSR bundle
- Previously only filtered MiniCssExtractPlugin (Webpack)
2. Enhanced loader filtering with explicit Rspack check (lines 114-119)
- Added regex match for CssExtractRspackPlugin
- Ensures both Webpack and Rspack CSS loaders are filtered
Cache Immutability Documentation:
- Added detailed comment explaining Shakapacker config immutability
- Clarifies that config is loaded once at Node process start
- Documents that cache is safe because config cannot change at runtime
These changes address potential edge cases when using Rspack for SSR.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 2af9d6f commit 4d9d19e
2 files changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
114 | 120 | | |
115 | 121 | | |
116 | 122 | | |
| |||
0 commit comments