Skip to content

Support flow:main in manifest #2675

@steelbrain

Description

@steelbrain

(I searched for an existing issue but couldn't find one so sorry if this is a duplicate)

The problem

The problem is that we want flow to understand the types of flow-typed modules correctly when requiring them.

The workaround

We currently have to keep .flow files along with .js files after they are babel compiled and that adds an extra build step and a ton of headache.

The solution

If Flow has support for flow:main (like jsnext:main for rollup), we would not have to add anything new to our build step. We can just leave the src dir in our npm package and set flow:main to src/.

This is a follow up to #1459

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions