this wasn't working:
const { override, addExternalBabelPlugin } = require('customize-cra');
module.exports = override(addExternalBabelPlugin('babel-plugin-react-engine'))
this instead worked:
const { override, getBabelLoader } = require('customize-cra');
const prependBabelPlugin = (plugin) => (config) => {
getBabelLoader(config).options.plugins.unshift(plugin);
return config;
};
module.exports = override(prependBabelPlugin('babel-plugin-react-engine'));
thanks to: arackaf/customize-cra#240