This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
anot
Archived
1
0
Fork 0
anot/lib/plugin.esm.js

20 lines
334 B
JavaScript

/**
* rollup plugin
* @author yutent<yutent.io@gmail.com>
* @date 2020/08/11 15:46:57
*/
export default function esm() {
return {
name: 'esm',
generateBundle(info, chunk) {
var item
for (let k in chunk) {
item = chunk[k]
break
}
item.code += 'export default _Anot\n'
}
}
}
前端迷你mvvm框架。基于司徒正美的`avalon2.x`版精简修改而来。
JavaScript 100%