feat: remove react-scripts in favor of Vite #44
+754
−9,650
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request migrates the project from Create React App to Vite, modernizing the build tooling, updating environment variable usage, and making related code and documentation changes. The most important changes include switching to Vite for development and build scripts, updating environment variable references throughout the codebase, and adding Vite-specific configuration and documentation.
Migration to Vite:
package.jsonto remove Create React App dependencies and scripts, add Vite dependencies and scripts, and set"type": "module"for ES module support.vite.config.tswith Vite configuration, including plugin setup, server options, build output, and environment variable definitions.Environment variable changes:
process.env.REACT_APP_API_KEYandprocess.env.REACT_APP_URLwithimport.meta.env.VITE_API_KEYandimport.meta.env.VITE_URLinsrc/App.tsxfor API key and URL usage. [1] [2] [3] [4]README.mdto instruct users to useVITE_API_KEYandVITE_URLinstead of the previous environment variable names.Project structure and code improvements:
index.htmlfile for Vite, replacing the Create React App HTML entry point.src/App.tsxby addingkeyprops to radio button groups to avoid React warnings and improve performance. [1] [2]