#5718·babel

flowtype "declare var module" 会导致 transform-flow-strip-types 将模块编译为 _module

作者: philiiiiiipp创建于 2017年5月8日更新于 2026年9月2日
标签help wantedarea: flow

请选择一个:这是一个 bug 报告还是功能请求? bug report

在使用 flowtype 的

javascript
declare var module
``` 并在使用 module.exports 的文件中时, transform-flow-strip-types 会生成 
```js
_module.exports
```而不是 
```js
module.exports