Whitelist cjs extension for metro

Summary: This is required for the new release of promisify-child-process.

Reviewed By: mweststrate

Differential Revision: D21543812

fbshipit-source-id: dc254ea51381696b9927f7c62dd36e10ef00fcac
This commit is contained in:
Pascal Hartig
2020-05-13 10:20:09 -07:00
committed by Facebook GitHub Bot
parent 8e60f4abbb
commit d7035b7e7d
3 changed files with 3 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ async function compile(
resolver: {
resolverMainFields: ['flipperBundlerEntry', 'module', 'main'],
blacklistRE: /\.native\.js$/,
sourceExts: ['js', 'jsx', 'ts', 'tsx', 'json', 'mjs'],
sourceExts: ['js', 'jsx', 'ts', 'tsx', 'json', 'mjs', 'cjs'],
},
},
{