Add babel-plugin-idx to a create-react-app app via react-app-rewired.
yarn add --dev react-app-rewire-idx
or
npm install --save-dev react-app-rewire-idx
// config-overrides.js
const rewireIdx = require('react-app-rewire-idx');
module.exports = function override(config, env) {
config = rewireIdx(config, env);
// other rewires...
return config;
}
// config-overrides.js
const { compose } = require('react-app-rewired')
const rewireIdx = require('react-app-rewire-idx');
module.exports = compose(
rewireIdx,
// other rewires...
);