vuejs / vue-jest

Jest Vue transformer
MIT License
742 stars 159 forks source link

Postcss support #91

Open lancetharper opened 6 years ago

lancetharper commented 6 years ago

Would love to get support for postcss. I've forked to explore this and am hopeful to submit a PR for it

jeremyzahner commented 6 years ago

@lancetharper Maybe look at the SASS/SCSS implementation since it should be the most complete one.

lancetharper commented 6 years ago

@jeremyzahner I looked at the SASS examples and they are using renderSync. It looks like postcss needs to be async to support async plugins though. Is this even possible without rewriting all of vue-jest to be async?

eddyerburgh commented 6 years ago

vue-jest can't be async, because jest transforms can't be async.

What plugins need to be async?

lancetharper commented 6 years ago

I'm not sure which ones are, I just get a warning saying async plugins won't work if postcss isn't run async.

I don't know if there is a sync method for automatically loading the configs either.

mrvasia commented 4 years ago

https://github.com/vuejs/vue-jest/pull/195 guys please take a look on my PR

pumano commented 4 years ago

any news about it?