-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6f6aaf
commit ea4eaba
Showing
3 changed files
with
10 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,20 +72,7 @@ const headRegexp = /(^module.exports = \w+;?)/m | |
|
||
, isArrayDefine = [ | ||
headRegexp | ||
, `$1 | ||
/*<replacement>*/ | ||
// from https://github.com/juliangruber/isarray/blob/aa39e3199004330bd72daa46207bf22f7ea5be17/index.js | ||
// MIT Licenced | ||
// Copyright (c) 2013 Julian Gruber <[email protected]> | ||
var toString = {}.toString; | ||
var isArray = Array.isArray || function (arr) { | ||
return toString.call(arr) == '[object Array]'; | ||
}; | ||
/*</replacement>*/ | ||
` | ||
, '$1\n\n/*<replacement>*/\nvar isArray = require(\'isarray\');\n/*</replacement>*/\n' | ||
] | ||
|
||
, isArrayReplacement = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,7 @@ var processNextTick = require('process-nextick-args'); | |
/*</replacement>*/ | ||
|
||
/*<replacement>*/ | ||
// from https://github.com/juliangruber/isarray/blob/aa39e3199004330bd72daa46207bf22f7ea5be17/index.js | ||
// MIT Licenced | ||
// Copyright (c) 2013 Julian Gruber <[email protected]> | ||
|
||
var toString = {}.toString; | ||
|
||
var isArray = Array.isArray || function (arr) { | ||
return toString.call(arr) == '[object Array]'; | ||
}; | ||
var isArray = require('isarray'); | ||
/*</replacement>*/ | ||
|
||
Readable.ReadableState = ReadableState; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ea4eaba
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.
Why was isarray readded here?
ea4eaba
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.
We cannot bundle the dependencies because they broke yarn.