Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Releases: FormidableLabs/whackage

NPM5 and Metro bundler support + Bugfixes

19 Oct 12:27
Compare
Choose a tag to compare
  • 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

26 Apr 08:14
Compare
Choose a tag to compare

Whackage now supports project-specific packager configurations. In order to use this feature, your configuration must conform to the following spec.

  1. Your config file needs to be called rn-cli.config.js, and be present in the project root directory
  2. Your getBlackListRE method must take an optional array of "default" modules to blacklist, and pass those to blacklist 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.