Skip to content

Commit

Permalink
docs: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xuasir committed Mar 18, 2021
1 parent 6e2c44d commit f50d554
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

## 特性

1. 高度插件化:所有功能基于插件实现,`@xus/core`实现了脚手架的核心生命周期,并且是所有能力都插件化
1. 高度插件化:所有功能基于插件实现,`@xus/core`实现了脚手架的核心生命周期,并且使所有能力都插件化

2. 跨插件的`hook`机制:基于`tapable``hook`调用机制,挂载于核心`service`实现跨插件的`hook`联动

3. `import from one`: 所有内容均从`@xus/cli`包导出

## 默认`lib`打包能力

默认的`preset`中包含了基于`rollup`的类库打包器,自动嗅探项目环境实现`js/ts/vue/react`(支持`jsx`)打包
默认的`preset`中包含了基于`rollup``esbuild`的类库打包器,自动嗅探项目环境实现`js/ts/vue/react`(支持`jsx`)打包。

采用了`esbuild`作为核心`transform`来处理代码,并且提供`legacy`满足降级到`es5`产出以及`runtime`等需求。

0 comments on commit f50d554

Please sign in to comment.