Closed tobiastimm closed 4 years ago
In case someone else stumbles into this issue. This isn't really a problem with rollup-plugin-commonjs
and more just an issue between rollup
not supporting all circular dependencies and readable-stream
not removing the circular dependency because they are valid under the ES module spec. They both have issues tracking this:
https://github.com/rollup/rollup/issues/1507 https://github.com/nodejs/readable-stream/issues/348
There is workaround mentioned in the first issue by timdp which replaces readable-stream
with stream
and it works most of the time for me.
Hey folks (this is a canned reply, but we mean it!). Thanks to everyone who participated in this issue. We're getting ready to move this plugin to a new home at https://github.com/rollup/plugins, and we have to do some spring cleaning of the issues to make that happen. We're going to close this one, but it doesn't mean that it's not still valid. We've got some time yet before the move while we resolve pending Pull Requests, so if this issue is still relevant, please @ me and I'll make sure it gets transferred to the new repo. :beer:
When I use
readable-stream
with therollup-plugin-commonjs
it throws:at runtime.
I've created a repo and tested it with babel & typescript.
https://github.com/TobiasTimm/rollup-typescript-readable-stream