Skip to content

fix(init): standardize TypeScript config and webpack.config.ts for all templates(svelte, react and vue)#4740

Open
ThierryRakotomanana wants to merge 10 commits intowebpack:mainfrom
ThierryRakotomanana:fix/typescipt-generator
Open

fix(init): standardize TypeScript config and webpack.config.ts for all templates(svelte, react and vue)#4740
ThierryRakotomanana wants to merge 10 commits intowebpack:mainfrom
ThierryRakotomanana:fix/typescipt-generator

Conversation

@ThierryRakotomanana
Copy link
Copy Markdown
Contributor

Summary
When TypeScript is selected, generate webpack.config.ts and apply modernized tsconfig.json settings (bundler resolution, ESM rewriting) across React, Vue, and Svelte templates.
It's following my PR #4723

What kind of change does this PR introduce?

Fixed the TypeScript setup for svelte, react and vue when creating a new webpack app via the CLI.

Did you add tests for your changes?
yes for each case and I've update the snapshot

Does this PR introduce a breaking change?
No

If relevant, what needs to be documented once your changes are merged or what have you already documented?
No need for documentation

Use of AI
No

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 17, 2026

⚠️ No Changeset found

Latest commit: 0c56ab2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.37%. Comparing base (99ee0b0) to head (0c56ab2).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4740      +/-   ##
==========================================
+ Coverage   91.44%   92.37%   +0.93%     
==========================================
  Files          14       14              
  Lines        4721     4736      +15     
  Branches      683      698      +15     
==========================================
+ Hits         4317     4375      +58     
+ Misses        402      359      -43     
  Partials        2        2              
Files with missing lines Coverage Δ
...es/create-webpack-app/src/generators/init/react.ts 86.95% <100.00%> (+7.40%) ⬆️
...s/create-webpack-app/src/generators/init/svelte.ts 86.23% <100.00%> (+6.42%) ⬆️
...ages/create-webpack-app/src/generators/init/vue.ts 87.50% <100.00%> (+6.22%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99ee0b0...0c56ab2. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant