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

the minimal change to get webpack 4 to compile #136

Merged
merged 9 commits into from Mar 4, 2018
Merged

the minimal change to get webpack 4 to compile #136

merged 9 commits into from Mar 4, 2018

Conversation

ghost
Copy link

@ghost ghost commented Feb 26, 2018

No description provided.

@ghost
Copy link
Author

ghost commented Feb 26, 2018

I apologize for the auto-formatting my editor did. The relevant change is on line 37

@ghost ghost mentioned this pull request Feb 26, 2018
@eeue56
Copy link
Contributor

eeue56 commented Feb 26, 2018

Can you make the change without the auto-formatting? It's hard to see based on the commit what changed, which is needed later if this breaks :)

index.js Outdated
@@ -34,7 +34,7 @@ var getFiles = function(options) {
};

var getOptions = function() {
var globalOptions = this.options.elm || {};
var globalOptions = this.options ? this.options.elm : {};

Choose a reason for hiding this comment

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

since the options now became query, the code may look like:

var globalOptions = this.options
    ? this.options.elm || {}
    : this.query.elm || {};

@mickeyvip
Copy link

@eeue56, @opvasger the build is failing, can we do something?

@ghost
Copy link
Author

ghost commented Mar 1, 2018

sometimes, when I run npm test locally, the async mode-test takes ~12 seconds. Most of my runs of it are down to ~2-3 seconds tho; I can't point out anything about the test that indicates a problem, but it is also the test CI hangs on.

var globalOptions = this.options.elm || {};
var globalOptions = this.options
? this.options.elm || {}
: this.query.elm || {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want this? Is this.query supported in older versions of webpack?

Copy link
Author

Choose a reason for hiding this comment

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

logging the properties whilst building from examples:
v1 supports this.options
v2 supports both
v4 supports this.query

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@eeue56
Copy link
Contributor

eeue56 commented Mar 15, 2018

published as 4.5.0

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.

2 participants