farm-fe / farm

Extremely fast Vite-compatible web build tool written in Rust
https://farmfe.org
MIT License
4.46k stars 153 forks source link

The vite plugin "unocss "cannot be supported #950

Open DaHaiChen opened 5 months ago

DaHaiChen commented 5 months ago

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

ErKeLost commented 5 months ago

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

wre232114 commented 5 months ago

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

ziongh commented 2 months ago

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

ErKeLost commented 2 months ago

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

I'll try this question.