Skip to content

Repo size #534

Closed
Closed

Description

@chrisskilton

This npm module pulls down 11.2mb of source code. Are there any plans to release 'lite' modules? Rxjs have done something similar.

Activity

  1. 0cv commented on Nov 15, 2016

    @0cv

    The minified size is less dramatic but that's still a big beast which could be easily made done more lightweight when trying to modularize a bit more the library.

    For example, Faye is only intended when using the Streaming API and CSV-parse /csv-stringify are probably also for very specific use case. When one just wants to use a specific API (e.g. REST), many node modules are included which are just not necessary. And also the source code of course.

    External libraries could be also removed, such as Lodash where, with ES6, it's mostly obsolete or Promise which is likewise obsolete and if one wants to still be ES5 compliant, this could be transformed through a module bundler / babel etc.

    There is a big room for improvement and that's even more critical when included in browsers / mobile devices

  2. stomita commented on Nov 22, 2016

    @stomita
    Contributor

    @Krisa As of today the streaming api is optional when you use jsforce-core bundle. There is how to use the core module in webpack environemnt.
    #381 (comment)
    Of course there still are many spaces to reduce the bundle size. We are currently struggling with it.

  3. mattgoldspink commented on Mar 1, 2018

    @mattgoldspink

    We hit an issue in our project with the use of lodash. We use lodash 4.17.1 and jsforce uses 4.13.0. 4.17.1 introduced the _.merge feature, so when we loaded jsforce after existing libs it broke the app. Ideally jsforce wouldn't include lodash if possible (we're also looking to remove it), but I can see other people hitting similar issues too.

    We've been following https://youmightnotneed.com/lodash/ to remove some of our usage.

  4. added
    fixed in v3
    and removed on Jun 13, 2024
  5. cristiand391 commented on Jul 15, 2024

    @cristiand391
    Contributor

    This should be fixed in v3, see: #1529

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

    fixed in v3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions