- code playgrounds monorepo
-
tech-stack
- npm workspaces
- rspack
- other devtools: eslint, prettier
-
project-structure
packages// common utils- foo: utils
apps// examples- app-nodejs: simple nodejs utils
boilerplate// quickstart template repos- app-react-rspack: simple react app
- app-nodejs: simple nodejs utils
- requirements
- npm v8.3+
npm i --legacy-peer-deps
# build all packages
npm run build
# start demo app
cd boilerplate/app-react-rspack
npm start- open a browser and go to http://localhost:8999
-
APP_ENVenvironment variable- if not set, building es6 and ts is supported, but not react
- if
react*is set, building react is supported - if
reacthotis set, react hot reloading is supported
-
npm
npm run buildneeds to run twice because npm workspaces doesn't support pkg compiled by dependent order
- rspack
- HMR is not implemented for module chunk format yet
see license under each package