This is a template project to start using swc with TypeScript.
Includes:
- Pre-configured Webpack config with swc-loader and other plugins
- Support for Jest using swc-jest
- A default ESLint config and TypeScript config.
- Support for TypeDoc.
Usage:
npm run dev
for local developmentnpm run build
for buildnpm run test
for testsnpm run lint
for lintingnpm run docs
for document generation
Notes:
- The noEmit rule in tsconfig.json must be true in order to use swc; TypeScript is included only for linting and enforcement purposes and is otherwise not required to use swc.
- The goal of this project is to focus on TypeScript; JavaScript support is not implemented but is explained here in the swc docs.