Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use mjs config files #454

Open
mgrisole opened this issue Oct 27, 2023 · 1 comment
Open

Can't use mjs config files #454

mgrisole opened this issue Oct 27, 2023 · 1 comment

Comments

@mgrisole
Copy link

mgrisole commented Oct 27, 2023

In a module package, I had to convert my postcss.config.mjs file to postcss.config.cjs (and specify its path in options postcss({config: {path: 'postcss.config.cjs', ctx: {}}})) to make it work.
It is not problematic but if that's intended (not to support mjs), could it be stated in the documentation?

@Kallekro
Copy link

Kallekro commented Jan 8, 2024

I spent ~5 hours of my dear life because of this. No warnings, errors or anything to indicate this was an issue. Rollup was just not processing the CSS.

Thank you so much @mgrisole!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants