mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
rename module exports from "aliases" to "aliasMap" (#36042)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36042 Pull Request resolved: https://github.com/facebook/react-native/pull/36028 Use aliasMap both in parsers and generators instead of using aliasMap in half of the places and aliases in the other. This would also allow us to introduce "enumMap" more easily in the next commit. Changelog: [Internal] rename module exports from "aliases" to "aliasMap" Reviewed By: christophpurrer, cipolleschi Differential Revision: D42888752 fbshipit-source-id: cf1929fcebde994d07e5c6bda5ab71106d417b21
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2d37f25f29
commit
69494a7b1f
+2
-2
@@ -447,7 +447,7 @@ module.exports = {
|
||||
|
||||
Object.keys(nativeModules).forEach(hasteModuleName => {
|
||||
const {
|
||||
aliases,
|
||||
aliasMap,
|
||||
excludedPlatforms,
|
||||
moduleName,
|
||||
spec: {properties},
|
||||
@@ -455,7 +455,7 @@ module.exports = {
|
||||
if (excludedPlatforms != null && excludedPlatforms.includes('android')) {
|
||||
return;
|
||||
}
|
||||
const resolveAlias = createAliasResolver(aliases);
|
||||
const resolveAlias = createAliasResolver(aliasMap);
|
||||
const className = `${hasteModuleName}Spec`;
|
||||
|
||||
const imports: Set<string> = new Set([
|
||||
|
||||
Reference in New Issue
Block a user