27 lines
325 B
Markdown
27 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
|
||
|
```
|