Skip to content

Commit 2eab95c

Browse files
committed
Add child_process stub to workaround browserify/module-deps#66
1 parent e3c5087 commit 2eab95c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

child_process.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
// stub http://nodejs.org/api/child_process.html
3+
4+
module.exports = {
5+
// module-deps 3.6.4 imports child_process.spawn, even though it doesn't need it:
6+
// (can remove after) https://github.com/substack/module-deps/pull/66
7+
spawn: function(command, args, options) {
8+
console.log('child_process.spawn ignored:',command,args,options);
9+
}
10+
};
11+

0 commit comments

Comments
 (0)