From 1f29ffb0232976de45b7caf079d0990dbb22017d Mon Sep 17 00:00:00 2001 From: fabriziobertoglio1987 Date: Fri, 20 Mar 2020 19:29:52 +0100 Subject: [PATCH] feat(example): fix circleci error --- examples/basic/metro.config.js | 1 + examples/basic/rn-cli.config.js | 27 --------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 examples/basic/rn-cli.config.js 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/.*`), - ]), - }, -};