-
Notifications
You must be signed in to change notification settings - Fork 105
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
Conversation
I apologize for the auto-formatting my editor did. The relevant change is on line 37 |
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 : {}; |
There was a problem hiding this comment.
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 || {};
@eeue56, @opvasger the build is failing, can we do something? |
sometimes, when I run |
var globalOptions = this.options.elm || {}; | ||
var globalOptions = this.options | ||
? this.options.elm || {} | ||
: this.query.elm || {}; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
published as 4.5.0 |
No description provided.