From 563a03397cb1426f06dbf07791100dbd340608d9 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Thu, 8 Dec 2022 00:24:53 +0100 Subject: [PATCH] docs: add readme with development instructions for next/swc --- packages/next-swc/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 packages/next-swc/README.md diff --git a/packages/next-swc/README.md b/packages/next-swc/README.md new file mode 100644 index 000000000000000..f3fb602638c629f --- /dev/null +++ b/packages/next-swc/README.md @@ -0,0 +1,26 @@ +# `@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 +```