snowpack-plugin-swc
配置.swcrc文件
npm install --save-dev snowpack-plugin-swc
// snowpack.config.json
{
"plugins" : [
[
"snowpack-plugin-swc" ,
{
"input" : [ '.js' , '.mjs' , '.jsx' , '.ts' , '.tsx' ] , // (optional) specify files for swc to transform
transformOptions : {
// swc transform options
}
}
]
]
}
插件选项
名称
类型
描述
input
string[]
评论0
最新资源