-
Notifications
You must be signed in to change notification settings - Fork 8
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
hack electron env #13
Conversation
@blond trouble with deps in travis |
@@ -38,7 +38,7 @@ module.exports = require('enb/lib/build-flow').create() | |||
.builder(function(preTargetSource) { | |||
return vowFs.read(this._modulesFile, 'utf8').then(function(modulesRes) { | |||
return modulesRes + | |||
"if(typeof module !== 'undefined') {" + | |||
"if(window === 'undefined' && typeof module !== 'undefined') {" + |
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.
typeof window === 'undefined'
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.
@zxqfox done
@@ -38,7 +38,7 @@ module.exports = require('enb/lib/build-flow').create() | |||
.builder(function(preTargetSource) { | |||
return vowFs.read(this._modulesFile, 'utf8').then(function(modulesRes) { | |||
return modulesRes + | |||
"if(typeof module !== 'undefined') {" + | |||
"if(typeof window === 'undefined' && typeof module !== 'undefined') {" + |
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.
Можно еще комент написать, чтобы потом не вспоминать. А так вроде норм
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.
@zxqfox добавил
Кроме коммента, LGTM |
techs/prepend-modules.js: line 41, col 127, Line is too long и коммиты бы посквошить |
I vote for @blond ;) |
@blond version?) |
Fixed in v0.3.0. |
No description provided.