forge icon indicating copy to clipboard operation
forge copied to clipboard

Feature Request: vite+react+typescript template

Open arbrsts opened this issue 11 months ago • 1 comments

Pre-flight checklist

  • [x] I have read the contribution documentation for this project.
  • [x] I agree to follow the code of conduct that this project uses.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem description

Since there's already a vite-typescript template, would like to contribute a vite+react template as an additional option.

I initially used electron-vite but would prefer a more official solution with electron-forge.

Can start implementing once I get a thumbs up!

Proposed solution

Key points

  • Vite + React + TS setup
  • @vitejs/plugin-react-swc for fast refresh

Alternatives considered

As an alternative, adding React manually took me about 10 minutes of research and 5 minutes implementing, but was still a cumbersome process.

In terms of the vite plugin for React, the base @vitejs/plugin-react is an alternative but has much slower performance than @vitejs/plugin-react-swc.

Additional information

No response

arbrsts avatar Dec 24 '24 22:12 arbrsts

+1 looking for this, if i try to manually setup react i keep getting JSX transform problems, and i have to import JSX everytime i want to use the type since i cant find any docs on how i can do it

ghost avatar Feb 16 '25 11:02 ghost