packager: buck library: expose asset content

Reviewed By: davidaurelio

Differential Revision: D4945778

fbshipit-source-id: ea132a3d284ed09c59c69afbdd7b707af9e521b9
This commit is contained in:
Jean Lauliac authored and Facebook Github Bot committed 2017-04-25 12:04:01 -07:00
1 parent 3afbcfcd6b
commit 1f8d1002ef
6 files changed
+33 -15

No files matched your search

+8
View File
@@ -140,3 +140,11 @@ export type LibraryOptions = {|
platform?: string,
root: string,
|};
export type Base64Content = string;
export type Library = {|
files: Array<TransformedFile>,
/* cannot be a Map because it's JSONified later on */
assets: {[destFilePath: string]: Base64Content},
|};