/react-app-rewire-glamorous-displayname

Add babel-plugin-glamorous-displayname to a create-react-app app via react-app-rewired.

Primary LanguageJavaScriptMIT LicenseMIT

react-app-rewire-glamorous-displayname

Add babel-plugin-glamorous-displayname to a create-react-app app via react-app-rewired.

Installation

yarn add --dev react-app-rewire-glamorous-displayname

or

npm install --save-dev  react-app-rewire-glamorous-displayname

Usage

// config-overrides.js
const rewireGlamorousDisplayname = require('react-app-rewire-glamorous-displayname');

module.exports = function override (config, env) {
  config = rewireGlamorousDisplayname(config, env);
  // other rewires...
  return config;
}

or

// config-overrides.js
const { compose } = require('react-app-rewired')
const rewireGlamorousDisplayname = require('react-app-rewire-glamorous-displayname');

module.exports = compose(
  rewireGlamorousDisplayname,
  // other rewires...
);