question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

yoga-layout-prebuilt adds massive overhead to bundle

See original GitHub issue

Hi Gents… @DuncanMacWeb @diegomura

When this module is imported it adds massively to the webpack optimised bundle size, in the order of about 600KB gzipped.

This nearly doubles my current optimised package size, and webpack starts to throw warnings about bundle size. The bundle size is significantly larger than recommended.

I’d say the yoga-layout-prebuilt module is the cause. Looking at the raw webpack bundle (*.chunk.js) code, I can see a bunch of stuff from nbind.js

Describe the solution you’d like Is it possible to package a cut down build of yoga-layout?

Describe alternatives you’ve considered I had a look at issues #364 and #603 but I’m guessing getting a yoga build process is pretty involved.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
hutch120commented, May 31, 2019

@nero2009 Thanks for the feedback. I checked out your website and your latest blog post which is very nicely written. I’ve been involved in software engineering for well over 20 years and I learn something new every day. I think your article is on the right track, embrace learning, and make sure you put it into practice by doing! It’s a wonderful career that I continue to love, I wish you good luck in your journey!

2reactions
nero2009commented, May 31, 2019

This helped me cause I recently added react-pdf to my projects and the bundle size doubled. Thanks for the detailed explanation @hutch120

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to skip ORM overhead in result? - Stack Overflow
I have an ORM sqlalchemy model, I need to construct a query (that is easier to construct with ORM classes), but it takes...
Read more >
Dependencies | docz | npm - Open Source Insights
arrow_right @emotion/core. 10.3.1 Notes Relation Licenses De... Version 10.3.1 Published December 8, 2021 Description arrow_right @mdx‑js/react. 1.6.22 Notes Relation Licenses De... Version 1.6.22 Published December 1,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found