Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 730 Bytes

README.md

File metadata and controls

28 lines (15 loc) · 730 Bytes

react-vite-with-koa

React SPA using Vite as the packaging toolchain, with a simple Koa server.

Server-side Rendering not supported. Better try Next.js or something similar.

test suites included

  • frontend: vitest
  • backend: jest

baseUrl tricks running built *.js files after tsc

pacakge.json "import" config:

https://nodejs.org/api/packages.html#main-entry-point-export

This is for the backend, vite handles everything for frontend.

Use # as the prefix of the import paths, the tsc-built *.js files will keep the import path and apply the "import" config in package.json.

For details, check package.json and tsconfig.build.json.

aws related settings

Check the aws branch.