Skip to content

Split bundle before shipping to npm #1640

@vjeux

Description

@vjeux

We're going to support a bunch of parsers that come along with heavy dependencies: babylon, flow, typescript, postcss, and maybe more in the future (graphql? html?)

We can't just use the npm dependency system otherwise it's going to take forever to install prettier and bloat your computer.

What we should do instead is to bundle each parser on its own file that we ship. This way we can have prettier be 0 dependencies and just ship a few files: bin, lib and one for each parser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions