electron / electron/forge

Feature Request: vite+react+typescript template

Open
#3,791 2 comments 7 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.1k
Forks
641
Avg merge
3d 1h
Merged PRs (30d)
30

Description

### Pre-flight checklist

- [x] I have read the [contribution documentation](https://github.com/electron/forge/blob/main/CONTRIBUTING.md) for this project.
- [x] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) 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](https://electron-vite.org/) 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.