Skip to content

Commit

Permalink
chore: replaced blacklist with exclusionList (#649)(by @aleppos)
Browse files Browse the repository at this point in the history
  • Loading branch information
emadhajjar committed Dec 28, 2021
1 parent 8d9b050 commit e3881b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
const fs = require('fs');
const blacklist = require('metro-config/src/defaults/blacklist');
const exclusionList = require('metro-config/src/defaults/exclusionList');
const escape = require('escape-string-regexp');

const root = path.resolve(__dirname, '..');
Expand All @@ -21,7 +21,7 @@ module.exports = {
watchFolders: [root],

resolver: {
blacklistRE: blacklist([
blacklistRE: exclusionList([
new RegExp(`^${escape(path.join(root, 'node_modules'))}\\/.*$`),
]),

Expand Down

0 comments on commit e3881b3

Please sign in to comment.