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
Raw Normal View History

2020-08-13 15:58:18 +08:00
/**
* 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'
}
}
}