Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WP 3 size reporting, disable inspectpack in minimal #202

Merged
merged 3 commits into from
Oct 5, 2017

Conversation

carloskelly13
Copy link

• Fix Webpack 3 module reporting. The path names are different so previously we just saw a single entry. Also ensure module reporting still works for Webpack 2.
• Disable analysis with inspectpack when running in minimal mode
• Show better warnings when inspectpack cannot get more data when Webpack is running in production

Addresses #201 #198

Production
screen shot 2017-10-04 at 1 02 31 pm

Fixed Webpack 3
screen shot 2017-10-04 at 1 20 23 pm

Webpack 2
screen shot 2017-10-04 at 1 19 46 pm

cc @ryan-roemer @kenwheeler

@carloskelly13 carloskelly13 added this to the 1.0 milestone Oct 4, 2017
Copy link
Member

@ryan-roemer ryan-roemer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, rest LGTM. Thanks!

@@ -26,7 +26,14 @@ function getModuleName(module) {
.slice(0, SCOPED_PACKAGE_INDEX)
.reduce((x, y) => x + y);
}
return module.baseName.split("/")[0];
const nameComponents = module.baseName.split("/");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it "/" on Windows? Or do we need like os.sep?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good q. Let me fire up the Windows VM and try it out.

@carloskelly13 carloskelly13 merged commit f686a02 into master Oct 5, 2017
@carloskelly13 carloskelly13 deleted the inspectpack-reporting-sizes branch October 5, 2017 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants