Skip to content

Instantly share code, notes, and snippets.

@PhilippMolitor
PhilippMolitor / craco.config.js
Created July 21, 2021 10:56
Fix including yarn workspaces packages in create-react-app with craco
module.exports = {
webpack: {
configure: (webpackConfig) => ({
...webpackConfig,
module: {
...webpackConfig.module,
rules: webpackConfig.module.rules.map((rule) => {
if (!rule.oneOf) return rule;
return {
...rule,