browserify / browserify/node-util
Inconsistent behaviour with node inherits
Open
- Dominant language
- JavaScript
- Stars
- 255
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Description
I have a node class that inherits Event emitter:
```
function MyClass() {
EventEmitter.call(this);
}
util.inherits(MyClass, EventEmitter);
```
This class also has it's prototype object with methods:
```
MyClass.prototype.foo = function() {};
```
When I run my code on node (5.4) everything runs smoothly, but once webpack'ed the MyClass prototype gets squashed and only the EventEmitter methods survive.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.