Skip to content

Reduce installed size #622

Closed
Closed

Description

@max-mapper

Hi, I noticed the installed size (of dependencies only, not devDependencies) is 410mb.

screen shot 2016-11-28 at 12 01 26 pm

It looks like ~%80 is coming from babel related modules (which I don't personally use). Is there any way to possibly make these optional, or have a lighter weight distribution in general?

Loving the module so far, thanks!

Activity

  1. jfirebaugh commented on Nov 28, 2016

    @jfirebaugh
    Member

    Previously: #583. Are you using npm v2?

  2. max-mapper commented on Nov 28, 2016

    @max-mapper
    Author

    Yep. Sorry, searched issues and didnt find that. I guess the fix then is for me to use something that dedupes babel modules.

  3. tmcw commented on Nov 28, 2016

    @tmcw
    Member

    Hey Max! Good to hear from ya

    Yep, as @jfirebaugh, npm v2 is the cause of much of our installation troubles and will cause those troubles unavoidable on practically any module that uses Babel.

    That said: even with npm v3, size is still an issue and one that we'd love to pare down, so that it's a no-brainer install even for those with very minimal requirements. So reducing size would be very welcome and I'm open to ideas. We use babylon as the parser central to documentation.js, so some reliance on the babel ecosystem would be hard to work away from - supporting a different parser would mean supporting a different AST format, so it might be a door to more complexity rather than less.

    Besides Babel, we also just need to keep track of which dependencies are consuming space in node_modules and whether they're pulling their weight.

    • Tom
  4. tmcw commented on Dec 23, 2016

    @tmcw
    Member

    Closing - happy to accept PRs implementing any significant install size improvements. The problem encountered here is with npm v2, though, so it's not something I can fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions