Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 312 Bytes

typescript-and-rollup.md

File metadata and controls

12 lines (8 loc) · 312 Bytes

Typescript 与 Rollup

rollup + typescript 就是个坑。对于 commonjs + typescript 的模块,rollup 解析有问题。详见 rollup/rollup#670

绕过方法:

import * as moment_ from 'moment';
const moment = moment_;

如此画蛇添足的写法,不如弃之。