react-diagrams: Can't seem to build with Rollup.js (0.41.4) / possibility of converting to ES6 modules?

I’m making a toy project to get the hang of this library, but can’t seem to be able to build it with rollup.

I’ve tried several approaches, but none of them is working: I keep ending up with either 'CanvasWidget' is not exported by node_modules\storm-react-diagrams\src\main.js or 'default' is not exported by node_modules\storm-react-diagrams\src\main.js. This happens regardless of whether I specify namedExports for rollup’s commonJS plugin.

For reference, my rollup config is mostly derived from the one available here

Secondary question: would you be interested in PRs that migrate the codebase to ES6 modules? If so, how would you propose to best handle it?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (16 by maintainers)

Most upvoted comments

Whoop whoop 😃 Looking good 😄

just pushed a dev branch, busy with it as we speak. Take a look at the test directory for an example of how it works after the change. Its got a full OOP model now with an event driven layer. It now supports multiple selections as well. It shouldn’t be long now until it all works and is optimized to how it used to be.

The hype. It’s real.

(No but seriously I hope I’m not nagging you, I kinda hyped myself into thinking about a weekend project I have in mind 😄)