Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function babel(config) {
const patch = {
plugins: [require.resolve('@babel/plugin-transform-react-jsx')],
};
return mergeBabel(patch, config);
}
export function babel(config) {
const patch = {
presets: [require.resolve('@babel/preset-react'), require.resolve('@babel/preset-flow')],
};
return mergeBabel(patch, config);
}