react-app-rewire-import
Compatible and tested with create-react-app@1.0.17
Add the import babel plugin to create-react-app using react-app-rewired
Installation
yarn add --dev react-app-rewire-import
or
npm install --save-dev react-app-rewire-import
Usage
// config-overrides.jsconst rewireImport = ; module { config = ; // other rewires... return config;}
To pass options to the Babel plugin use the third argument, it passes straight through to the plugin:
config =
See the available options in the babel-plugin-import documentation.