# wepack **Repository Path**: mirrors_ctripcorp/wepack ## Basic Information - **Project Name**: wepack - **Description**: :four_leaf_clover: Super fast miniapp compiler. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-13 - **Last Updated**: 2026-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
### Demo
- [图虫小程序 @ 飘香豆腐](https://github.com/yisar/wean-demo-tuchong)
- [TodoMVC](https://github.com/ctripcorp/wean/tree/master/demo)
### Run
```shell
$ npm install
$ npm link
$ wean
```
### Motivation
在 wean 之前,大量小程序工具使用 babel + webpack 进行打包,各种 loader 、plugin 导致整个开发链路变长,O(n^n) 一遍又一遍的 ast 遍历,复杂度指数级增长,编译耗时超级长,调试也超级困难
wean 旨在解决链路问题,它自研编译器和打包器,整体复杂度维持在 O(n),没有任何 AST 操作,同一个小程序项目,wean 大约比 taro(+webpack)快一百倍
### Package
| Package | Description | Version |
| -------------------------- | :--------------- | :------------------------------------------------------------------------- |
| [wean](packages/core) | 微信小程序打包器 | [](https://npm.im/@wean/core) |
| [wean/wxml](packages/wxml) | wxml 编译器 | [](https://npm.im/@wean/wxml) |
### Design

#### License
MIT @ctripcorp