chore: update @bitdev/react.generators.react-templates to ^6.0.9 - #10619
Conversation
Code Review by Qodo
1. Webpack template unregistered
|
PR Summary by QodoUpdate pnpm lockfile
AI Description
High-Level Assessment
Files changed (1)
|
| ReactWebpackTemplate.from({ env: 'bitdev.react/react-env' }), | ||
| // ReactWebpackAppTemplate.from({ env: 'bitdev.react/react-env' }), | ||
| ReactJSComponentTemplate.from({ env: 'bitdev.react/react-env' }), | ||
| ReactEnvTemplate.from(), | ||
| ]); |
There was a problem hiding this comment.
1. Webpack template unregistered 🐞 Bug ≡ Correctness
scopes/react/react/react.templates.ts removes ReactWebpackTemplate from the templates returned by getTemplates(), so the Generator aspect will no longer expose that template for component generation under this env.
Agent Prompt
### Issue description
The React env no longer registers the webpack-based generator template (`ReactWebpackTemplate`). This removes it from the template set exposed via `generator.registerComponentTemplate(...)`, which can break template selection/generation flows that expect it to exist.
### Issue Context
`getTemplates()` defines the full list of component templates, and `ReactMain` registers that list with the Generator aspect.
### Fix Focus Areas
- scopes/react/react/react.templates.ts[1-21]
- scopes/react/react/react.main.runtime.ts[470-478]
### Expected fix
- If webpack-based generation is still supported: re-add `ReactWebpackTemplate` import and its `.from(...)` entry in the `TemplateList.from([...])` list.
- If it is intentionally deprecated: add an explicit replacement path (e.g., documented Vite template), and update the PR description/changelog so consumers understand the removal and can migrate.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
Code review by qodo was updated up to the latest commit cfea426 |
cfea426 to
8a9e32a
Compare
|
Code review by qodo was updated up to the latest commit 8a9e32a |
|
Code review by qodo was updated up to the latest commit 1c7af92 |
|
Code review by qodo was updated up to the latest commit 8b6bd04 |
|
Code review by qodo was updated up to the latest commit a26ccb3 |
|
Code review by qodo was updated up to the latest commit 0aac64d |
|
Code review by qodo was updated up to the latest commit e15bf5f |
|
Code review by qodo was updated up to the latest commit 1ad9b46 |
Proposed Changes