Skip to content

Commit 1093cb2

Browse files
committed
fix: expose reactNativePath for Re.Pack getDevMiddleware
1 parent 3b2fa61 commit 1093cb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/plugin-repack/src/lib/pluginRepack.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export const pluginRepack =
4040
name: 'start',
4141
description: 'Starts Re.Pack dev server.',
4242
action: async (args: StartArgs) => {
43+
const reactNativePath = api.getReactNativePath();
4344
const root = api.getProjectRoot();
4445
const platforms = api.getPlatforms();
4546
const { port, startDevServer } = await findDevServerPort(
@@ -54,7 +55,7 @@ export const pluginRepack =
5455
startCommand.func(
5556
[],
5657
// @ts-expect-error TODO fix getPlatforms type
57-
{ root, platforms, ...pluginConfig },
58+
{ reactNativePath, root, platforms, ...pluginConfig },
5859
{ ...args, port },
5960
);
6061
},

0 commit comments

Comments
 (0)