egoist / rollup-plugin-postcss

Seamless integration between Rollup and PostCSS.
MIT License
678 stars 218 forks source link

ES module support #459

Open socketopp opened 9 months ago

socketopp commented 9 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 months ago

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