Skip to content

Commit 21779d9

Browse files
authored
Apply suggestion from @ndelangen
1 parent be5e516 commit 21779d9

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

docs/docs/intro/getting-started/repack.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,16 @@ export default function App() {
8888

8989
The `declare const` tells TypeScript about the global that Rspack's `DefinePlugin` injects. When `STORYBOOK_ENABLED` is `false`, Rspack dead-code-eliminates the Storybook branch entirely.
9090

91-
For the rest of the setup (`.rnstorybook` folder, dependencies, running scripts), follow the [Manual Setup](./manual-setup.md) guide — everything except the bundler config is identical.
91+
## Add Scripts
92+
93+
```json
94+
{
95+
"scripts": {
96+
"storybook": "STORYBOOK_ENABLED='true' react-native start",
97+
"storybook:ios": "STORYBOOK_ENABLED='true' react-native run-ios",
98+
"storybook:android": "STORYBOOK_ENABLED='true' react-native run-android"
99+
}
100+
}
92101

93102
## Re.Pack notes
94103

0 commit comments

Comments
 (0)