jsxtools/rescript-use-postcss-config

Not working with Webpack 5

Opened this issue · 1 comments

To have it to work, I had to do the following change:

from

                    // support "plugins" configuration
					const shouldUpdatePlugins = use.options.plugins && pcssConfig.plugins.length

					if (shouldUpdatePlugins) {
						use.options.plugins = pcssConfig.plugins
					}

to

				// support "plugins" configuration
				const hasPostCssOptions = use.options.postcssOptions;

				if (hasPostCssOptions) {
					delete use.options;
				}

I created this package: https://www.npmjs.com/package/@benjamin-vanryseghem/rescript-use-postcss-config if someone bump into the same problem