egoist / rollup-plugin-postcss

Seamless integration between Rollup and PostCSS.
MIT License
673 stars 215 forks source link

ES module support #459

Open socketopp opened 7 months ago

socketopp commented 7 months ago

I am getting this error:

[!] (plugin postcss) Error: require() of ES Module \postcss.config.js from 
node_modules\lilconfig\dist\index.js not supported.
Instead change the require of postcss.config.js in \node_modules\lilconfig\dist\index.js to a dynamic import() which is available in
all CommonJS modules.

See similar error in postcss-cli. https://github.com/postcss/postcss-cli/issues/387

easonlin-Dashmote commented 3 weeks ago

How about renaming postcss.config.js to postcss.config.mjs? Works for me.