@revolut/monorepo-overrides
v1.1.0
Published
Description
Downloads
773
Keywords
Readme
@revolut/monorepo-overrides
✨ Features
Function for react-app-rewired
that takes CRA Webpack config and returns a config that tells Webpack
to compile all local @revolut packages using its Main babel-loader (there is a minimal secondary for node_modules)
Also it disables reporting of ForkPlugin for those @revolut packages due to following issue.
Stackoverflow
🎬 Getting started
const { webpackRevolutOverrides, jestOverride } = require('@revolut/cra-overrides')
const monorepoOverride = require('@revolut/monorepo-overrides')
module.exports = {
webpack: (config, env) => {
// wrap your regular overrides with monorepoOverride funciton
config = monorepoOverride(webpackRevolutOverrides(config, env))
return config
},
jest: (config) => {
config = jestOverride(config)
return config
},
}