Skip to content

Commit 2b52339

Browse files
committed
docs: mention the codegen target
1 parent 83e069f commit 2b52339

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/pages/build.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Supported targets are:
88
- ES modules build for bundlers such as [webpack](https://webpack.js.org)
99
- [TypeScript](https://www.typescriptlang.org/) definitions
1010
- Flow definitions (copies .js files to .flow files)
11+
- [Codegen](https://reactnative.dev/docs/the-new-architecture/what-is-codegen) generated scaffold code
1112

1213
If you created a project with [`create-react-native-library`](./create.md), `react-native-builder-bob` is **already pre-configured to build your project**. You don't need to configure it again.
1314

@@ -168,6 +169,12 @@ Example:
168169

169170
Various targets to build for. The available targets are:
170171

172+
#### `codegen`
173+
174+
Generates the [React Native Codegen](https://reactnative.dev/docs/the-new-architecture/what-is-codegen) scaffold code, which is used with the New React Native Architecture.
175+
176+
You can ensure your Codegen generated scaffold code is stable through different React Native versions by shipping it with your library. You can find more in the [React Native Official Docs](https://reactnative.dev/docs/the-new-architecture/codegen-cli#including-generated-code-into-libraries).
177+
171178
#### `commonjs`
172179

173180
Enable compiling source files with Babel and use CommonJS module system.

0 commit comments

Comments
 (0)