You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
fed135
changed the title
Inconsistent behaviour with node inherit
Inconsistent behaviour with node inherits
Apr 14, 2016
I have a node class that inherits Event emitter:
This class also has it's prototype object with methods:
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.
The text was updated successfully, but these errors were encountered: