packager: buck library: expose asset content

Reviewed By: davidaurelio

Differential Revision: D4945778

fbshipit-source-id: ea132a3d284ed09c59c69afbdd7b707af9e521b9
This commit is contained in:
Jean Lauliac
2017-04-25 12:04:01 -07:00
committed by Facebook Github Bot
parent 3afbcfcd6b
commit 1f8d1002ef
6 changed files with 33 additions and 15 deletions
+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},
|};