msagljs
msagljs copied to clipboard
CommonJS or AMD dependencies
Hello. Just found this library and is awesome. I'm using it in an angular project and I receive the following warnings:
Warning: D:\work\htdocs\hubtalk2-dashboard\node_modules\@msagl\core\dist\layout\layered\layerEdge.js depends on 'typescript-string-operations'. CommonJS or AMD dependencies can cause optimization bailouts.
Warning: D:\work\htdocs\hubtalk2-dashboard\node_modules\@msagl\core\dist\math\geometry\RTree\rectangleNode.js depends on 'stack-typescript'. CommonJS or AMD dependencies can cause optimization bailouts.
Warning: D:\work\htdocs\hubtalk2-dashboard\node_modules\@msagl\core\dist\structs\graph.js depends on 'queue-typescript'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
I know I can add exceptions for those libraries in angular.json, just wanted to notice this in case you want to move to other libraries that support es6 modules.
@Pessimistress , @catapop84 , I am not sure how to address this issue.