Thanks for all the efforts that upgrade from v6 to v7 that compatible with react-script@5, which upgrade webpack setting.
I found the current 7.1.0 version still won't make postcss-loaderpostcssOptions.plugins work, and I check the document of postcss-loader and am not sure it allows a function that returns the postcss plugin list.
In my case, using the merged new plugins will work well.
Hi there
Thanks for all the efforts that upgrade from v6 to v7 that compatible with react-script@5, which upgrade webpack setting.
I found the current 7.1.0 version still won't make
postcss-loader
postcssOptions.plugins
work, and I check the document ofpostcss-loader
and am not sure it allows a function that returns the postcss plugin list.In my case, using the merged new plugins will work well.
Related code: https://github.com/dilanx/craco/blob/main/packages/craco/src/lib/features/webpack/style/postcss.ts#L86
Since I am not sure of the reason, I am not going to make a pull request but will be happy to do that.
My current @craco/craco@7.1.0
patch-package
diffMy previous @craco/craco@6.4.3
patch-package
diff, for anyone needed: