rsnext/packages/next-swc
Tobias Koppers d4d779145c
refactor shared logic for turbopack-cli (#48307)
### What?

* move some shared runtime logic to turbopack
* use relative imports from internal code when possible
* move react-refresh logic to turbopack
* move benchmark code logic to turobpack

see https://github.com/vercel/turbo/pull/4553

### Why?

We want to have benchmarking again for turbopack PRs
We want to have a standalone turbopack cli (eventually)
We want to avoid duplicating the runtime code

### How?

refactoring, moving code
2023-04-13 14:54:34 +02:00
..
.cargo next-swc: Switch to testing::fixture (#47183) 2023-03-17 06:18:25 +00:00
.config re-enable next-dev-tests (#47087) 2023-03-14 16:05:19 +01:00
crates refactor shared logic for turbopack-cli (#48307) 2023-04-13 14:54:34 +02:00
native Extract next-swc Rust code into its own package (#31635) 2021-11-21 12:59:56 +01:00
.rustfmt.toml add consistent import sorting/grouping to rustfmt (#47745) 2023-03-31 22:12:54 +00:00
Cargo.lock refactor shared logic for turbopack-cli (#48307) 2023-04-13 14:54:34 +02:00
Cargo.toml refactor shared logic for turbopack-cli (#48307) 2023-04-13 14:54:34 +02:00
package.json v13.3.1-canary.6 2023-04-13 01:22:55 +00:00
README.md docs: add readme with development instructions for next/swc (#43834) 2022-12-08 13:38:44 +01:00
rust-toolchain Update Turbopack to 230309.2 (#46971) 2023-03-09 13:24:24 -08:00

@next/swc

This package is responsible for swc compilation customized for next.js

Development

Run tests

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