nitro-react/craco.config.js

28 lines
816 B
JavaScript
Raw Normal View History

2021-09-16 06:48:43 +02:00
module.exports = {
eslint: {
enabled: false
2021-09-17 05:16:54 +02:00
},
webpack: {
configure: (webpackConfig) => ({
...webpackConfig,
module: {
...webpackConfig.module,
rules: webpackConfig.module.rules.map((rule) =>
{
if(!rule.oneOf) return rule;
return {
...rule,
oneOf: rule.oneOf.map((ruleObject) =>
{
if(!new RegExp(ruleObject.test).test('.ts') || !ruleObject.include) return ruleObject;
return { ...ruleObject, include: undefined };
})
};
})
}
})
2021-09-16 06:48:43 +02:00
}
}