brightwu

Results 138 comments of brightwu

就是在centos 7 下,粘贴出来的是一个空文件

> xclip安装了么,测试可以使用么 可以使用,xclip命令测试正常

> 可以用代码目录下的res/linux.sh脚本试一下,插件是调用这个脚本来保存图片 测试了好像是xclip的问题,我的xclip从剪切板读取不到图片,只能读取到文字。版本是0.12。但是从文件经过xclip复制到clipboard是正常的,在其他软件,比如shutter或者chrome里面,点击`复制图像`,然后再用xclip从clipboard输出到文件得到就是一个空文件

I met the same error without using proc-macro on Debian 5.4.56, arch a86_64

we will provide official plugin and scaffold to support.

Farm is based on plugins, so all transformers should be implemented as a plugin, we won't support `css.transformer`, instead, we'll provide a `plugin-lightningcss` later

we already have rust/swc plugins supported. see @farmfe/plugin-react, and examples/vue-jsx

Swc plugins: https://farm-fe.github.io/docs/config/farm-config#scriptplugins Rust plugins: https://github.com/farm-fe/farm/tree/main/rust-plugins

Yes, we'll provide a pure rust lightningcss plugin later(maybe this month, and PR welcome)

transform is string to string, then the string will be passed to parse hook and be parsed to ast. process_module is ast to ast. swc pklugins are executed during this...