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.
- frontend:
vitest - backend:
jest
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.
Check the aws branch.