rsnext/packages/next-swc/README.md
Jiachi Liu a6714d3cdc
docs: add readme with development instructions for next/swc (#43834)
* Creating the readme for me `@next/swc` with basic development
instructions
* Adding instructions for testing and updating the `next/swc` tests


## Documentation

- [x] Make sure the linting passes by running `pnpm build && pnpm lint`
2022-12-08 13:38:44 +01:00

26 lines
325 B
Markdown

# `@next/swc`
This package is responsible for swc compilation customized for next.js
### Development
Run tests
```sh
cargo test
# Update snapshots and fixtures for tests
UPDATE=1 cargo test
```
Format code before submitting code
```
cargo fmt
```
Build the binary to integrate with next.js
```
pnpm build-native
```