What's happening
I'm using craco for starting project, so I try to configure webpack inside craco.config.js to add a plugin to webpack.
But when start project I'm facing with the issue
Failed to compile.
compiler.plugin is not a function
I researched and found that when I'm using webpack 5, the property compiler.plugin was removed, so I think craco should have a update for this, reference hereWhat should happen
It should start success with a new webpack plugin was attached
To reproduce
Add my config above with "@craco/craco": "^6.4.5" and "react": "^18.2.0"
What's happening I'm using craco for starting project, so I try to configure webpack inside
craco.config.js
to add a plugin to webpack. But when start project I'm facing with the issueI researched and found that when I'm using webpack 5, the property
compiler.plugin
was removed, so I think craco should have a update for this, reference here What should happen It should start success with a new webpack plugin was attachedTo reproduce Add my config above with
"@craco/craco": "^6.4.5"
and"react": "^18.2.0"
CRACO version 6.4.5
CRACO config
package.json
Additional information