Fix the metro paths for files detected as nodejs

Summary: Fix the path lookup for files to be considered to run in nodejs.

Reviewed By: mjesun

Differential Revision: D7685278

fbshipit-source-id: c921d40b60d795820448842aec464e7ff82b6eab
This commit is contained in:
Peter van der Zee 2018-04-19 09:09:06 -07:00 committed by Facebook Github Bot
parent d408de0438
commit c18684a293
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ const generate = require('@babel/generator').default;
const nodeFiles = RegExp([
'/local-cli/',
'/metro(-bundler)?/',
'/metro(?:-[^\/]*)?/', // metro, metro-core, metro-source-map, metro-etc
].join('|'));
const nodeOptions = babelRegisterOnly.config([nodeFiles]);