browserify / browserify/node-util
Inconsistent behaviour with node inherits
- Lenguaje dominante
- JavaScript
- Estrellas
- 255
- Forks
- 92
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start by reproducing the issue with the MyClass/EventEmitter inheritance snippet under Node 5.4 and after webpack bundling. Compare the resulting MyClass prototype in both environments; done means the custom foo method remains available alongside the inherited EventEmitter methods.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, node.js, webpack
- Área
- tooling
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100