diff --git a/packages/vscode-extension/lib/babel_transformer.js b/packages/vscode-extension/lib/babel_transformer.js index a7a4cfd28..36443f299 100644 --- a/packages/vscode-extension/lib/babel_transformer.js +++ b/packages/vscode-extension/lib/babel_transformer.js @@ -98,7 +98,7 @@ function transformWrapper({ filename, src, ...rest }) { // is experimental as it has some performance implications and may be removed in future versions. // const { version } = requireFromAppDir("react-native/package.json"); - if (version.startsWith("0.74") || version.startsWith("0.75") || version.startsWith("0.76")) { + if (version.startsWith("0.74") || version.startsWith("0.75") || version.startsWith("0.76") || version.startsWith("0.77")) { const rendererFileName = filename.split(path.sep).pop(); src = `module.exports = require("__RNIDE_lib__/rn-renderer/${rendererFileName}");`; } diff --git a/packages/vscode-extension/src/project/metro.ts b/packages/vscode-extension/src/project/metro.ts index 7b1ca6c82..980272322 100644 --- a/packages/vscode-extension/src/project/metro.ts +++ b/packages/vscode-extension/src/project/metro.ts @@ -345,9 +345,7 @@ export class Metro implements Disposable { } private filterNewDebuggerPages(listJson: CDPTargetDescription[]) { - return listJson.filter( - (page) => page.reactNative && page.title.startsWith("React Native Bridge") - ); + return listJson.filter((page) => page.reactNative); } private async isActiveExpoGoAppRuntime(webSocketDebuggerUrl: string) {