git clone https://github.com/Flashrob/cra-swc.gitnpm installoryarn install
In the project directory, you can run:
npm run startoryarn startto run dev app.npm run buildoryarn buildto make production build.npm run testoryarn testto run tests.npm run ejectoryarn ejectto eject the CRA.
These are all commands from the original CRA. Please refer to CRA documentation.
This repo acts as a boilerplate for a CRA setup with TypeScript and SWC as transpiler.
There is an example SWC config in the craco.config.js. Feel free to make changes to it.
More info here: https://swc.rs/docs/configuration/swcrc
Info here: https://github.com/pradel/create-react-app-swc/blob/main/packages/craco-swc/README.md