Skip to content

fix: Resolve webpack dependencies#251

Merged
evenstensberg merged 10 commits into
webpack:masterfrom
sendilkumarn:webpack-cleanup/remove-webpack-deps
Feb 13, 2018
Merged

fix: Resolve webpack dependencies#251
evenstensberg merged 10 commits into
webpack:masterfrom
sendilkumarn:webpack-cleanup/remove-webpack-deps

Conversation

@sendilkumarn

@sendilkumarn sendilkumarn commented Jan 25, 2018

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

tries to merge master on top of #229 Test cases seems to work fine. There is an extra line in the log which is handled (needs review)

@ev1stensberg @sokra

sokra and others added 2 commits December 29, 2017 19:04
@webpack-bot

Copy link
Copy Markdown

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@evenstensberg

Copy link
Copy Markdown
Member

Could you rebase this to Tobias's PR instead? Easier to debug

@sendilkumarn sendilkumarn changed the base branch from master to cleanup/remove-webpack-deps January 30, 2018 05:44
@sendilkumarn sendilkumarn changed the base branch from cleanup/remove-webpack-deps to master January 30, 2018 05:53
@sendilkumarn

sendilkumarn commented Jan 30, 2018

Copy link
Copy Markdown
Contributor Author

This is already on top of Tobias' change.

diff

is the different

Comment thread bin/webpack.js Outdated

if (argv.progress) {
var ProgressPlugin = require("webpack/lib/ProgressPlugin");
var ProgressPlugin = require("webpack").processPlugin;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

processPlugin -> ProgressPlugin

Comment thread bin/ErrorHelpers.js Outdated
@@ -0,0 +1,30 @@
/*

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seem to be weird to have errorHelpers and ErrorHelpers.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it should be errorHelpers right?

@evenstensberg evenstensberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Errorhelpers -> errorHelpers

@sendilkumarn

sendilkumarn commented Jan 30, 2018

Copy link
Copy Markdown
Contributor Author

well it is super exciting 👍 the file shows errorHelpers but in the commit it is ErrorHelpers is it a bug here.

Ha ha, use git mv 😝

@evenstensberg evenstensberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM here, left some comments for you to answer. @sokra on final review

Comment thread bin/webpack.js

if (outputOptions.infoVerbosity === "verbose") {
compiler.hooks.beforeCompile.tap("WebpackInfo", (compilation) => {
compiler.hooks.beforeCompile.tap("WebpackInfo", compilation => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think maybe this is already commited in master

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

addressed.

Comment thread bin/errorHelpers.js Outdated

exports.cutOffWebpackOptinos = stack =>
exports.cutOffByFlag(stack, webpackOptionsFlag);
exports.cutOffWebpackOptions = (stack) => exports.cutOffByFlag(stack, webpackOptionsFlag);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you tell me what these things are doing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@ev1stensberg the file name change is slightly confused things here. I guess, this was the old errorhelpers content, I think I have to take the latest from the bin/errorhelpers.js right ?

correct me if I am wrong

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yep, that would be prefered, thought you did that, so that's why I'm asking

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Where did the old errorHelper come from? Tobias? Maybe he improved/fixed some things there

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yup, the old errorhelper was from Tobias, but the current master errorHelper was having all the methods what was there and new methods were added on top of it. So I decided to have this version.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So if I understand: You've looked at Tobias's PR, that is where this implementation of ErrorHelper is from?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah... But when I merged with the master I saw yours (current master) which has more methods.

Tobias PR :
cf82edb

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Keep what Tobias refactored, see if there's any old calls using the old code in the CLI, I'll re-review after

@evenstensberg

Copy link
Copy Markdown
Member

Could you explain what you're doing and why @sendilkumarn ?

@sendilkumarn sendilkumarn force-pushed the webpack-cleanup/remove-webpack-deps branch from c165b1e to 5ed3994 Compare January 30, 2018 23:40
@sendilkumarn

Copy link
Copy Markdown
Contributor Author

is it waiting for @sokra 's review ?

@evenstensberg

Copy link
Copy Markdown
Member

Is everything set? I'll have another review later

@evenstensberg evenstensberg changed the title Webpack cleanup/remove webpack deps fix: Resolve webpack dependencies Feb 9, 2018

@evenstensberg evenstensberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM here, @sokra can you have a look at the Errorhelpers module? Haven't done any work there, so I don't know which one is better to have ( or is newer )

@sendilkumarn

Copy link
Copy Markdown
Contributor Author

@fokusferit I am not too sure on the test case, but added one that will test the corresponding method. Let me know if you think otherwise.

Comment thread package.json Outdated
"prepare": "yarn format",
"pretest": "yarn lint",
"test": "nyc jest",
"test": "nyc jest test/BinTestCases.test.js",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

was there a need for this change?

@@ -0,0 +1,13 @@
"use strict";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 I understand that testing it isolated doesn't make much sense, but having some test checking for correct error output is already better then nothing :)

@ematipico

Copy link
Copy Markdown
Contributor

@ev1stensberg @fokusferit @sendilkumarn Should be upgrade to webpack-beta.1? Apart this, I'd say the PR is good to me!

@webpack-bot

Copy link
Copy Markdown

@sendilkumarn Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@ematipico Please review the new changes.

@sendilkumarn

Copy link
Copy Markdown
Contributor Author

can we do better in testing the messages 😞 It is quite troublesome to update them every time.

@evenstensberg

Copy link
Copy Markdown
Member

@sendilkumarn agree. Think @EugeneHlushko did some nice and neat stuff there at an earlier PR, might be a good FC

@evenstensberg evenstensberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, thanks @sendilkumarn, you're on 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants