farm icon indicating copy to clipboard operation
farm copied to clipboard

The vite plugin "unocss "cannot be supported

Open DaHaiChen opened this issue 1 year ago • 4 comments

Steps to reproduce

Vite plugin unocss:global:build:scan is not compatible with Farm for now. Because it uses hook "moduleParsed" which is not supported by Farm.

What is expected?

The moduleParsed hook in the rollup is not supported. Hope it will be the same

What is actually happening?

The moduleParsed hook in the rollup is not supported. Hope it will be the same

System Info

The moduleParsed hook in the rollup is not supported. Hope it will be the same

Any additional comments?

No response

DaHaiChen avatar Feb 03 '24 09:02 DaHaiChen

The plugin for unocss is in progress. We will use the farm native js plugin instead of using vite-compatible plugins. Please wait.

ErKeLost avatar Feb 03 '24 10:02 ErKeLost

you can use unocss postcss plugin for now. vite plugin unocss is deeply integrated with vite, some of it's plugins can not be supported.

for unocss plugin, we will implement unplugin-unocss for farm later

wre232114 avatar Feb 03 '24 11:02 wre232114

Is there any update on this thread? Currently the latest farm with postcss is not working with unocss.

ziongh avatar Apr 24 '24 18:04 ziongh

Is there any update on this thread? Currently the latest farm with postcss is not working with unocss.

I'll try this question.

ErKeLost avatar Apr 25 '24 06:04 ErKeLost

great roadmap in https://github.com/farm-fe/farm/issues/1589 ; really hope I can use react with unocss soon

rvion avatar Oct 08 '24 14:10 rvion