Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/ninety-apples-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rock-js/plugin-repack': patch
---

Expose reactNativePath in pluginRepack.ts to prevent undefined error in Re.Pack getDevMiddleware when starting up dev server
3 changes: 2 additions & 1 deletion packages/plugin-repack/src/lib/pluginRepack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const pluginRepack =
name: 'start',
description: 'Starts Re.Pack dev server.',
action: async (args: StartArgs) => {
const reactNativePath = api.getReactNativePath();
const root = api.getProjectRoot();
const platforms = api.getPlatforms();
const { port, startDevServer } = await findDevServerPort(
Expand All @@ -54,7 +55,7 @@ export const pluginRepack =
startCommand.func(
[],
// @ts-expect-error TODO fix getPlatforms type
{ root, platforms, ...pluginConfig },
{ reactNativePath, root, platforms, ...pluginConfig },
{ ...args, port },
);
},
Expand Down
Loading