fix: omit packager assets from caching (#1438)
This commit is contained in:
@@ -1,7 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
const path = require('path');
|
||||
const blacklist = require('metro').createBlacklist;
|
||||
|
||||
const rootProjectDir = path.resolve(__dirname, '..', '..')
|
||||
|
||||
module.exports = {
|
||||
// Resolve react-native-video from parent directory so we do not have to install react-native-video after each change applied
|
||||
getBlacklistRE: function() {
|
||||
return blacklist([/node_modules\/react-native-video\/examples\/.*/]);
|
||||
return blacklist([/node_modules\/react-native-video\/.*/, new RegExp(`${rootProjectDir}/node_modules/react-native/.*`)])
|
||||
},
|
||||
getProjectRoots() {
|
||||
return [
|
||||
__dirname,
|
||||
rootProjectDir
|
||||
]
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user