craco
craco copied to clipboard
How to use thread-loader in craco?
How to use thread-loader in craco?
module: {
rules: [
{
test: /.js$/,
include: path.resolve(__dirname, '../src'),
use: [
// 'babel-loader',
{
loader: 'thread-loader',
options: {
workers: 3,
},
},
],
},
],
}
But,It won't work
error message: Error: Can't find a 'oneOf' rule under module.rules in the production webpack config!