build(bazel): add flatModuleIndexRedirect to material package (#10788)

This commit is contained in:
Jeremy Elbourn
2018-04-11 10:35:06 -07:00
committed by tinayuangao
parent 1a9917d234
commit 8acd5a156e
2 changed files with 1129 additions and 3116 deletions
+1128 -3116
View File
File diff suppressed because it is too large Load Diff
@@ -33,4 +33,5 @@ const rootMetadataPath = path.join(materialPackageDir, 'material_public_index.me
const rootMetadata = JSON.parse(fs.readFileSync(rootMetadataPath, 'utf-8'));
rootMetadata.exports = secondaryEntryPointExports;
rootMetadata.flatModuleIndexRedirect = true;
fs.writeFileSync(rootMetadataPath, JSON.stringify(rootMetadata), 'utf-8');