-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CommonJS incompatible? (events, stream) #87
Comments
Thanks for sharing, agreed this is an important case to fix. Tracking. |
Thanks for all the work on this library, just sharing one place this is currently causing breaks for me. Twilio-video attempts to extend EventEmitter in quite a few classes and the above error is encountered. Just also noting, the recently released Remix v2 migrates to the jspm-core polyfills from this repo so this likely will start effecting more people. |
IMO this is really huge breakage since as I understand the intention of that plugin is to support legacy code. Also, I'm curious to know why jspm was chosen instead of the classical webpack-way polyfillying? I'm using |
One option here might be to use package exports conditions to match a CommonJS implementation as necessary for this specific builtin. A suitable conditions might be |
Note this story will improve with Node.js's new |
to demonstrate:
I noticed after bundle errors like
TypeError: Class extends value #<Object> is not a constructor or null
of the following sample code below (coming here from esbuild plugin):Please ask if unclear.
The text was updated successfully, but these errors were encountered: