Giter Site home page Giter Site logo

Comments (9)

danielroe avatar danielroe commented on July 22, 2024 2

A minimal reproduction won't share any data of your client. But it is needed. 🙏

from nuxt.js.

github-actions avatar github-actions commented on July 22, 2024

Would you be able to provide a reproduction? 🙏

More info

Why do I need to provide a reproduction?

Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.

What will happen?

If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect.

If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.

How can I create a reproduction?

We have a couple of templates for starting with a minimal reproduction:

👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz
👉 https://codesandbox.io/s/github/nuxt/starter/v3-codesandbox

A public GitHub repository is also perfect. 👌

Please ensure that the reproduction is as minimal as possible. See more details in our guide.

You might also find these other articles interesting and/or helpful:

from nuxt.js.

HummingMind avatar HummingMind commented on July 22, 2024

Have you looked at the bundle to see what increased?

npx nuxi analyze

from nuxt.js.

danielroe avatar danielroe commented on July 22, 2024

For a build size to increase from 106Mb -> 760Mb I would very much hope that it's not JS but perhaps other kinds of assets. But bundle size is a good first step! And then likely investigating the outputs in more detail to see what is different.

from nuxt.js.

fareed13 avatar fareed13 commented on July 22, 2024

I can't provide you the reproduction right now, I can look into making a minimal reproduction. However, I didnt change anything except for the version and dependencies updates as a I have shared already.

npx nuxi analyze of 3.5.3
Screen Shot 2024-06-16 at 4 27 20 PM

npx nuxi analyze of 3.11.2
Screen Shot 2024-06-16 at 4 24 31 PM

from nuxt.js.

danielroe avatar danielroe commented on July 22, 2024

Based on those screenshots, there doesn't seem to be much difference between your js bundles. It is likely assets, such as video files, that make the difference.

I'll look forward to your reproduction.

from nuxt.js.

muhammad-grayphite avatar muhammad-grayphite commented on July 22, 2024

Hello @danielroe,

I am also working on this project as a lead resource. It's a large project, and since it's the client's private repository, I'm unsure if providing a reproduction or minimal reproduction is a good idea. However, I will see what we can do.

This build is from the same site at the same time from the database, so there is no difference in assets. The increase in build size might be due to third-party libraries we are using, such as Vuetify, which we registered differently this time in nuxt.config. We need guidance on what could have caused the approximate 7x increase in build size, especially since there were no significant changes.

  • Same site (same data from db not a single text difference)
  • same dependencies but updated versions

from nuxt.js.

fareed13 avatar fareed13 commented on July 22, 2024

Hi @danielroe,

I have encountered a significant difference in build sizes between Nuxt versions 3.5.3 and 3.12.2. To illustrate, I created minimal reproduction repositories with the same code:

Nuxt 3.5.3
Nuxt 3.12.2

When generating the build for both versions with just the home page (/) and a blog page (/blog), I observed the following build sizes:

Nuxt 3.5.3: approximately 13.2MB
Nuxt 3.12.2: approximately 39.5MB
The build size for version 3.12.2 is almost 3 times larger than that of 3.5.3. Given that this minimal reproduction is just a small fraction of the full code, the size discrepancy would likely increase further with additional pages.

Could you please investigate the cause of this large increase in build size? If you need any further information or assistance from my side, feel free to ask.

Thank you

from nuxt.js.

danielroe avatar danielroe commented on July 22, 2024

These projects are not the same. They have different sets of dependencies, and lots of different version differences other than the Nuxt changes. They are also not minimal reproductions.

I would advise you change only one thing at a time. For example, upgrade everything but Nuxt, and see if the size changes. I appreciate that might be time consuming but it often helps with finding and diagnosing the issue in a complex situation.

In order to reduce what is changing at any given time, I took your upgraded repo and ran a build, then downgraded Nuxt to v3.5.3 and Nitro to v2.4.1 and ran it again. The sizes were almost identical, though actually the newer public/ directory was smaller:

CleanShot 2024-06-20 at 22 29 42@2x

Note that the size is affected by:

  1. there are three copies of every file as nitro.compressPublicAssets produces both .gz + .bz versions in addition to the main asset
  2. you are also generating server sourcemaps

However, I cannot reproduce any change from the Nuxt update. So it must be one of the other changes in the project. As I suggested above, it would be worth trying to update them (or downgrade them) one by one until you find the culprit.

If at any point you discover something that looks like Nuxt might be at fault, please do not hesitate to let me know - ideally with a minimal reproduction so I can confirm it's a Nuxt issue.

from nuxt.js.

Related Issues (20)

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.