GithubHelp home page GithubHelp logo

react-xarrows-issue-118-repo's Introduction

react-xarrows-issue-118-repo

Eliav2/react-xarrows#118

To reproduce:

  1. Run npm run build
  2. Run npm run analyze
  3. Look at HTML file that opens (keep this open for step 7)
  4. Uncomment the 2 lines that are commented out in App.tsx
  5. Run npm run build
  6. Run npm run analyze
  7. Look at HTML file that opens (and compare with the file from step 3)

As shown by the two generated HTML files, the 2nd version that imports Xarrow results in 69.95KB of JS added to the production bundle via lodash/lodash.js. So this proves that https://bundlephobia.com/package/[email protected] is correct, that all (or at least a large and unnecessary amount) of lodash is required to be bundled with react-xarrows (as the current way that lodash is used in react-xarrows doesn't allow the dead code to be tree shaken).

react-xarrows-issue-118-repo's People

Contributors

joealden avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.