facebookarchive/prepack

Include .flow files in the distributable package

開放

#545 建立於 2017年5月4日

 (0 則留言) (1 個反應) (0 位負責人)JavaScript (520 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (14,268 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I'd like to able to import the Options type, e.g.

import type {
  Options
} from 'prepack/lib/options.js.flow'

This is to enable type-hinting in https://github.com/gajus/prepack-webpack-plugin.

The current build strips types, or at least I don't see a way to import them.

The way I distribute my packages is using flow-copy-source, e.g. https://github.com/gajus/prepack-webpack-plugin/commit/69c3464816c1a524880473dd7999dda7f9915413

貢獻者指南