tbo47 / dagre-es

The dagrejs library exported as ES modules.
Other
32 stars 14 forks source link

refactor: prevent import mutation causing build issues with some bundlers #3

Closed Hysow closed 1 year ago

Hysow commented 1 year ago

Javascript allow mutation for imported objects. But its's important to keep the code as mutation free as possible. Moreover, some module bundlers with dependencies optimizations don't accept that and throw error. (Rollup, Vite..)

tbo47 commented 1 year ago

ok, let me know if you want me to release a new version.