aws-samples / aws-sdk-js-notes-app

A simple note taking application using modular AWS SDK for JavaScript (v3)
Other
81 stars 30 forks source link

feat: replace react-scripts with vite #37

Closed trivikr closed 3 years ago

trivikr commented 3 years ago

Issue

N/A

Description

Replaces create-react-app with vite to use fast development builds using esbuild.

Before ```console $ yarn start ... takes 10+ seconds $ time yarn build Creating an optimized production build... ... yarn build 71.85s user 7.81s system 179% cpu 44.387 total ```
After ```console $ yarn start vite v2.4.4 dev server running at: > Local: http://localhost:3000/ > Network: use `--host` to expose ready in 1255ms. $ time yarn build vite v2.4.4 building for production... ... yarn build 32.71s user 1.98s system 202% cpu 17.145 total ```

Testing

Local testing for the following commands:


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.