diff --git a/examples/basic/metro.config.js b/examples/basic/metro.config.js index 1b8c6db46..9cfa89ecc 100644 --- a/examples/basic/metro.config.js +++ b/examples/basic/metro.config.js @@ -27,4 +27,5 @@ module.exports = { ), ]), }, + maxWorkers: 2, }; diff --git a/examples/basic/rn-cli.config.js b/examples/basic/rn-cli.config.js deleted file mode 100644 index 9d82c8b2e..000000000 --- a/examples/basic/rn-cli.config.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file overrides metro config so - */ -'use strict'; - -const path = require('path'); -const blacklist = require('metro-config/src/defaults/blacklist'); - -const reactNativeCameraRoot = path.resolve(__dirname, '..', '..'); - -module.exports = { - transformer: { - getTransformOptions: async () => ({ - transform: { - experimentalImportSupport: false, - inlineRequires: false, - }, - }), - }, - watchFolders: [path.resolve(__dirname, 'node_modules'), reactNativeCameraRoot], - resolver: { - blacklistRE: blacklist([ - new RegExp(`${reactNativeCameraRoot}/examples/mlkit/.*`), - new RegExp(`${reactNativeCameraRoot}/node_modules/react-native/.*`), - ]), - }, -};