We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c53293 commit 4f25845Copy full SHA for 4f25845
1 file changed
packages/repack/src/commands/common/getDevMiddleware.ts
@@ -1,3 +1,5 @@
1
+import url from 'node:url';
2
+
3
export async function getDevMiddleware(reactNativePath: string) {
4
const reactNativeCommunityCliPluginPath = require.resolve(
5
'@react-native/community-cli-plugin',
@@ -8,5 +10,6 @@ export async function getDevMiddleware(reactNativePath: string) {
8
10
paths: [reactNativeCommunityCliPluginPath],
9
11
});
12
- return import(devMiddlewarePath);
13
+ const { href: fileUrl } = url.pathToFileURL(devMiddlewarePath);
14
+ return await import(fileUrl);
15
}
0 commit comments