facebookarchive/prepack

Include .flow files in the distributable package

Ouverte

#545 ouverte le 4 mai 2017

 (0 commentaire) (1 réaction) (0 personne assignée)JavaScript (520 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (14 268 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur