You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### What?
continuation of #57851, since it is from a remote branch that I don't have access to write.
Co-authored-by: Maia Teegarden <[email protected]>
Co-authored-by: Tim Neutkens <[email protected]>
Copy file name to clipboardExpand all lines: contributing/core/building.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,4 +8,6 @@ pnpm build
8
8
9
9
By default, the latest canary of the `next-swc` binaries will be installed and used. If you are actively working on Rust code or you need to test out the most recent Rust code that hasn't been published as a canary yet, you can [install Rust](https://www.rust-lang.org/tools/install) and run `pnpm --filter=@next/swc build-native`.
10
10
11
+
If you want to test out the wasm build locally, you will need to [install wasm-pack](https://rustwasm.github.io/wasm-pack/installer/). Run `pnpm --filter=@next/swc build-wasm --target <wasm_target>` to build and `node ./scripts/setup-wasm.mjs` to copy it into your `node_modules`. Run next with `NODE_OPTIONS='--no-addons'` to force it to use the wasm binary.
12
+
11
13
If you need to clean the project for any reason, use `pnpm clean`.
Copy file name to clipboardExpand all lines: docs/04-architecture/nextjs-compiler.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ We chose to build on SWC for a few reasons:
17
17
18
18
-**Extensibility:** SWC can be used as a Crate inside Next.js, without having to fork the library or workaround design constraints.
19
19
-**Performance:** We were able to achieve ~3x faster Fast Refresh and ~5x faster builds in Next.js by switching to SWC, with more room for optimization still in progress.
20
+
-**WebAssembly:** Rust's support for WASM is essential for supporting all possible platforms and taking Next.js development everywhere.
20
21
-**Community:** The Rust community and ecosystem are amazing and still growing.
0 commit comments