Conversation
update webpack configs
Signed-off-by: Ryan Swanson <ryan.swanson@loft.sh>
✅ Deploy Preview for devspace-docs canceled.
|
Adversarial (claude) Review — PR #3230 "UI dep updates and migrations"OverviewThree concurrent migrations in one PR: React Router v5→v6, Sass HIGH — Production CSS extraction is brokenFile:
The comment in the code literally documents the intent: // isDevelopment ? 'style-loader' : MiniCssExtractPlugin.loader,...but HIGH —
|
| Severity | Count |
|---|---|
| High | 3 |
| Medium | 2 |
| Low | 2 |
| Correct | 5 |
The blockers before merge: the production CSS extraction gap (no MiniCssExtractPlugin), the unresolved peer dep conflict hidden behind --legacy-peer-deps, and the inquirer ESM compatibility risk in the npm package. The rest can be addressed as follow-ups.
- replace webpack 4-only production plugins with webpack 5 equivalents - restore extracted CSS, asset-manifest generation, and service-worker output - remove the legacy peer dependency install workaround from the UI build script - align ui package dependencies and regenerate the lockfile to install cleanly - replace the outdated ts-jest preprocessor shim with a local TypeScript Jest transform - revert dist/npm inquirer and find-process to CommonJS-safe versions - tighten configToYAML typing and align CustomNavLink active state with NavLink semantics - fix TerminalCache typing so the UI build passes lint and type checks
Claude's follow up reviewHere's the round 2 verdict: All three previous HIGH blockers are resolved. The latest commit (b9fdade) correctly addresses every
One new LOW finding: ui/config/jest/typescriptTransform.js explicitly sets sourceMap: false and returns no Two carry-forward pre-existing issues (not from this PR): postcss-loader v4 with v3 API, and url-loader's Overall: ready to merge. |
What issue type does this pull request address? (keep at least one, remove the others)
/kind enhancement
What does this pull request do? Which issues does it resolve? (use
resolves #<issue_number>if possible)resolves #
Please provide a short message that should be published in the DevSpace release notes
Fixed an issue where DevSpace ...
What else do we need to know?