browserify / browserify/node-util
Inconsistent behaviour with node inherits
Aperta
- Lingua principale
- JavaScript
- Stelle
- 255
- Fork
- 92
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.