System Requirements:
We recommend starting a new Rspeedy app using create-rspeedy,
which sets up everything automatically for you. To create a project, run:
After the prompts, create-rspeedy will create a folder with your project name and install the required dependencies.
fork-ts-checker-webpack-pluginThe @rsbuild/plugin-type-check integrates
with fork-ts-checker-webpack-plugin.
It can be directly used in Rspeedy!
Begin by installing the plugin using your preferred package management tool:
Next, incorporate the plugin into your configuration file by adding it to the relevant section:
Now, both your npm run dev and npm run build will build the projects with type checking!
For more detailed options, please refer to @rsbuild/plugin-type-check.
tscEnabling type checking in ReactLynx is also possible.
This can be achieved by simply adding a typecheck script in the package.json file:
Then, run npm run typecheck to check the TypeScript files.