feat(example): fix circleci error

This commit is contained in:
fabriziobertoglio1987 2020-03-20 19:29:52 +01:00
parent 4c54bd5f2f
commit 1f29ffb023
2 changed files with 1 additions and 27 deletions

View File

@ -27,4 +27,5 @@ module.exports = {
),
]),
},
maxWorkers: 2,
};

View File

@ -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/.*`),
]),
},
};