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.

Chunk loading order changed between 1.4 and latest version?

See original GitHub issue

I’m seeking some guidance on how to approach a problem with a large codebase migration. Our code base has nearly 1000 components/views. In migrating to webpack 5 from v4 and v1.4 or something of this plugin to the latest version, we’ve noticed 2 problems: our chunks are split differently, and the order of the CSS links appears to be different, which is causing issues with CSS cascades.

Previously, what we’d expect to see is if A.vue imports B.vue, B’s CSS chunk would be loaded after A’s CSS chunk. This allowed B to override its parents styles. It also meant if A.vue asynchronously loaded B.vue, the loading of B would be consistently ordered (A then B in all cases.) I recognize this ordering is arbitrary in nature and may be considered an implementation detail, but we’ve coded 1000 components with this expectation.

Is it possible to recover this behaviour from before the webpack/plugin upgrade? Either webpack or this plugin are responsible for the ordering of how these styles are loaded. In particular, I’d like to know if this was a change that was made consciously (that way I’d know it’s probably the culprit.)

It’s worth noting that our development build (uses style-loader) works fine. So I suspect it was indeed a change to this plugin.

Modification Proposal

Possibly provide a way to customize the order of component tree CSS?

Expected Behavior / Situation

Outlined above.

Actual Behavior / Situation

Outlined above.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
lwansbroughcommented, Sep 27, 2022

@alexander-akait I greatly appreciate the deep dive. It seems though we agree on the order, it is somewhat arbitrary. I think this issue can be closed. We’re going to go ahead with updating our code.

1reaction
alexander-akaitcommented, Sep 19, 2022

Feel free to ask/ping if you need a help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chunk - Minecraft Wiki - Fandom
A chunk is a 384-block tall 16×16 segment of a world. Chunks are the method used by the world generator to divide maps...
Read more >
A chunk with previously generated data was cleared, all the ...
A chunk with previously generated data (blocks, items, mobs, etc) was cleared, all the blocks and data within vanish and replaced with ...
Read more >
Uncaught (in promise) Error: Loading chunk # failed. #7502
While new pods are created and running with the new version of the web app can't be loaded. What is the expected behavior?...
Read more >
Comments - Stackable Chunks [1.4+] - Steam Community
load the mod and start the game. go to mod options and change all stack sizes to 1. ... Broken. Deletes all chunks...
Read more >
TimescaleDB release notes and future plans - Timescale Docs
TimescaleDB release notesWhat's new in TimescaleDB 2.9:2.9.0 (2022-12-15)2.8.1 ... #4720 Fix chunk exclusion for prepared statements and dst changes ...
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