Skip to content

Commit

Permalink
Introduce a platform allowlist for libraries
Browse files Browse the repository at this point in the history
Reviewed By: yungsters

Differential Revision: D39726132

fbshipit-source-id: 69d22ce780e780a86026b1cf5a11117001e7ad29
  • Loading branch information
motiz88 authored and facebook-github-bot committed Oct 4, 2022
1 parent f0e9c73 commit 4b78430
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/metro/src/ModuleGraph/types.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ export type ResolvedLibrary = {
+files: $ReadOnlyArray<$DeepReadOnly<ResolvedCodeFile>>,
/* cannot be a Map because it's JSONified later on */
+assets: AssetContentsByPath,

+isUnsupportedPlatform?: boolean,
};

type DeepReadOnlyFn = (<T>(Array<T>) => $ReadOnlyArray<$DeepReadOnly<T>>) &
Expand Down

0 comments on commit 4b78430

Please # to comment.