Blacklist sdks/hermes from Metro resolution (#34452)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/34452 This will unblock the RN `test_android` CI Job as currently two versions of `hermes-parser` are picked up during package resolution. Changelog: [Internal] [Fixed] - Blacklist sdks/hermes from Metro resolution Reviewed By: cipolleschi Differential Revision: D38856931 fbshipit-source-id: 49d941f762ba0ef953c5c42b0ca13ac1c74b5ba5
This commit is contained in:
Родитель
674783574a
Коммит
bc84ec42ee
|
@ -19,7 +19,7 @@ const getPolyfills = require('./rn-get-polyfills');
|
|||
module.exports = {
|
||||
resolver: {
|
||||
// $FlowFixMe[signature-verification-failure] Can't infer RegExp type.
|
||||
blockList: /buck-out/,
|
||||
blockList: [/buck-out/, /sdks\/hermes/],
|
||||
extraNodeModules: {
|
||||
'react-native': __dirname,
|
||||
},
|
||||
|
|
|
@ -293,4 +293,9 @@ afterEvaluate {
|
|||
configureCMakeDebug.dependsOn(packageReactDebugNdkLibs)
|
||||
preHermesDebugBuild.dependsOn(packageReactDebugNdkLibs)
|
||||
preJscDebugBuild.dependsOn(packageReactDebugNdkLibs)
|
||||
|
||||
// As we're consuming Hermes from source, we want to make sure
|
||||
// `hermesc` is built before we actually invoke the `emit*HermesResource` task
|
||||
emitHermesDebugHermesResources.dependsOn(":ReactAndroid:hermes-engine:buildHermes")
|
||||
emitHermesReleaseHermesResources.dependsOn(":ReactAndroid:hermes-engine:buildHermes")
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче