Skip to content

Support webpack electron-renderer mode #426

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/file.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* develblock:start */
if (global.GENTLY) require = GENTLY.hijack(require);
/* develblock:end */

var util = require('util'),
fs = require('fs'),
Expand All @@ -16,7 +18,7 @@ function File(properties) {
this.lastModifiedDate = null;

this._writeStream = null;

for (var key in properties) {
this[key] = properties[key];
}
Expand Down
2 changes: 2 additions & 0 deletions lib/incoming_form.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* develblock:start */
if (global.GENTLY) require = GENTLY.hijack(require);
/* develblock:end */

var crypto = require('crypto');
var fs = require('fs');
Expand Down
2 changes: 2 additions & 0 deletions lib/json_parser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* develblock:start */
if (global.GENTLY) require = GENTLY.hijack(require);
/* develblock:end */

var Buffer = require('buffer').Buffer;

Expand Down
2 changes: 2 additions & 0 deletions lib/querystring_parser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* develblock:start */
if (global.GENTLY) require = GENTLY.hijack(require);
/* develblock:end */

// This is a buffering parser, not quite as nice as the multipart one.
// If I find time I'll rewrite this to be fully streaming as well
Expand Down