forked from react-native-async-storage/async-storage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetro.config.js
26 lines (23 loc) · 822 Bytes
/
metro.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* This cli config is needed for development purposes, e.g. for running
* integration tests during local development or on CI services.
*/
const exclusionList = require('metro-config/src/defaults/exclusionList');
const path = require('path');
module.exports = {
projectRoot: `${__dirname}/example`,
watchFolders: [__dirname],
resolver: {
blockList: exclusionList([
// This stops "react-native run-windows" from causing the metro server to crash if its already running
new RegExp(
`${path
.resolve(__dirname, 'example', 'windows')
.replace(/[/\\]/g, '/')}.*`
),
// Workaround for `EBUSY: resource busy or locked, open '~\msbuild.ProjectImports.zip'`
// when building with `yarn windows --release`
/.*\.ProjectImports\.zip/,
]),
},
};