-
-
Notifications
You must be signed in to change notification settings - Fork 816
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
Can't build with Rollup due to Circular dependencies #924
Comments
I'd accept a PR to fix this, but making this work with Rollup specifically isn't a big priority since this is (1) primarily a server-side library and (2) circular dependencies are explicitly a part of JavaScript so hopefully Rollup can one day support them. |
Even better would be an automated test to check for Rollup compatibility, since this is very likely to regress in the future. |
I think this is a little too generalized. it depends on the module system (es6, cjs, amd, umd) one is using. I don't know |
The best way to fix this would be to distribute standard modules. If a CJS build is needed, it could be automated with rollup. I'd be happy to make a PR for that. I can't at the moment use this library (for client-side code) in testing because it fails to build, due to the heavy transformations applied to the source
This kind of comes off like you're saying "Rollup users and developers who write standard javascript don't matter". I'm sure that's not what you mean, but there are a lot of developers who would love to use your libraries if the barrier to entry was lowered a little (read: if they could just The tide towards standard js is already turning with projects like pikapkg.com satisfying the desire for cruft-free JS. Please let the community help you ride that wave 〰️ . |
It seems like the only way to get around this atm is to use commonjs instead of ESM ( |
Is this project still active & accepting pull requests? |
This is not only about rollup. This is about every module which need call this library immediately, in initialization phase. |
Yes! |
Circular dependencies make building for browser with rollup impossible, you will get the below error in console.
Rollup outputs the following about the circular dependency
The text was updated successfully, but these errors were encountered: