This repository has been archived by the owner on Feb 17, 2022. It is now read-only.
Releases: FormidableLabs/whackage
Releases · FormidableLabs/whackage
NPM5 and Metro bundler support + Bugfixes
- Fixes compatibility issues with NPM5
- Fixes compatibility issues with Metro bundler (React Native > 0.46)
- Add ability to run arbitrary npm scripts with
whack run <script>
Thanks for contributions @jpdriver @admmasters @mbardauskas!
Add support for project-specific rn-cli.config.js
Whackage now supports project-specific packager configurations. In order to use this feature, your configuration must conform to the following spec.
- Your config file needs to be called rn-cli.config.js, and be present in the project root directory
- Your
getBlackListRE
method must take an optional array of "default" modules to blacklist, and pass those toblacklist
along with your own blacklisted modules.
Example:
// rn-cli.config.js
const blacklist = require('react-native/packager/blacklist');
module.exports = {
getBlacklistRE(defaults = []) {
const modulesToBlacklist = [
/* ... your deps */
];
return blacklist(defaults.concat(modulesToBlacklist));
}
};
Any other configuration methods should work out of the box without modification.