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:
parent
d408de0438
commit
c18684a293
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue