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
{{ message }}
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
I have a class which extends EventEmitter2, and they distribute umd. When our bundle is used with requirejs/AMD, the createCommonjsModule doesn't return anything.
So when eventemitter2 is passed to the inherits call (inherits(Test, _EventEmitter);) it throws an error Super expression must either be null or a function, not object
The text was updated successfully, but these errors were encountered:
Repo: https://github.com/viveleroi/rollup-amd-inherit-bug
I have a class which extends EventEmitter2, and they distribute umd. When our bundle is used with requirejs/AMD, the
createCommonjsModule
doesn't return anything.Our source can simply be this:
In EventEmitter2 code, and in the bundled output, we get:
Problem is, the
createCommonjsModule
doesn't handle this. The output assigns the returned value of that method, but in this case, it'sundefined
.So when
eventemitter2
is passed to theinherits
call (inherits(Test, _EventEmitter);
) it throws an errorSuper expression must either be null or a function, not object
The text was updated successfully, but these errors were encountered: