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

update: port to PostCSS 8. #113

Closed
wants to merge 1 commit into from

Conversation

ludofischer
Copy link
Contributor

Since people are want to get the vue compiler to work with PostCSS 8 (vuejs/core#2649) and the vue compiler uses postcss-modules, it might be useful to port postcss-modules to PostCSS 8 to so that Vue only requires PostCSS 8.

I have made this a draft because I haven't tested whether invoking postcss() again inside the plugin will play well with the PostCSS 8 single-tree traversal. Will other plugins be notified of the changes? Do we care? Should this implement the Processor interface instead?

await postcss([...pluginList, parser.plugin]).process(css, {
from: inputFile,
});
await postcss([...pluginList, parser.plugin]).process(css, {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be the entry point instead of running inside Once()?

@yyx990803
Copy link
Contributor

@ludofischer thanks a lot for working on this! I actually just saw this after I submitted #114 which passes all the tests.

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

Successfully merging this pull request may close these issues.

2 participants