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.

Incorrect description in "multiple-entry-points" example for webpack 4

See original GitHub issue

The multiple-entry-points README.md says:

  • commons.js contains:
    • the module system
    • chunk loading logic
    • module common.js which is used in both pages

https://github.com/webpack/webpack/blob/master/examples/multiple-entry-points/README.md

However with webpack 4, this no longer seems to be the case. In the output below, it appears the module system and chunk loading logic exist within pageA.js and pageB.js.

I am unsure if the description is wrong or if the example output is wrong, but in either case there is a mismatch here.

/cc @sokra

I’d be happy to open a MR to correct this if you could describe what’s happening here. Is there supposed to be webpack runtime code in both pageA.js and pageB.js rather than in commons.js?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mikegreilingcommented, Feb 21, 2018

@nveenjain go for it! I probably won’t have the time to get to it this week 😄

1reaction
nveenjaincommented, Feb 21, 2018

Can i do a PR for this? It looks easy and that way, i could explore other examples too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Entry Points
We will show you the ways you can configure the entry property, in addition to explaining why it may be useful to you....
Read more >
webpack 4 warns of invalid configuration object when ...
I'm following the official webpack docs, that describe how this can be achieved by creating multiple entry points, like so: module.exports = { ......
Read more >
webpack@4 Tree Shaking doesn't eliminate code between ...
webpack @4 Tree Shaking doesn't eliminate code between multiple entry points in same configuration object. #4453.
Read more >
Webpack Config Basics - 3. Multiple entry points - YouTube
In this video we dive a little bit deeper into entry and output and talk about how we can set our config up...
Read more >
How I solved and debugged my Webpack issue through ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location. For example ......
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