browserify / browserify/node-util
Inconsistent behaviour with node inherits
Offen
- Vorherrschende Sprache
- JavaScript
- Sterne
- 255
- Forks
- 92
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.