metro-buck: add e2e testing of command

Reviewed By: davidaurelio

Differential Revision: D6533842

fbshipit-source-id: b641559eb3085bac57ab3a1cc80a3f2f86b7ec92
This commit is contained in:
Jean Lauliac 2017-12-11 11:08:29 -08:00 committed by Facebook Github Bot
parent f66eb477ba
commit f044f42030
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ function transformModule(
}
let hasteID = null;
if (filename.indexOf(NODE_MODULES) === -1) {
if (filename.indexOf(NODE_MODULES) === -1 && !polyfill) {
hasteID = docblock.parse(docblock.extract(code)).providesModule;
if (options.hasteImpl) {
if (options.hasteImpl.enforceHasteNameMatches) {