question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
alexisvincentcommented, Feb 17, 2017

Whoop whoop 😃 Looking good 😄

1reaction
dylanvorstercommented, Feb 17, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

rollup.js
Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library...
Read more >
How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
Rollup is a next-generation JavaScript module bundler. Author your app or library using ES2015 modules, then efficiently bundle them up into a single...
Read more >
Using Rollup.JS to create JS modules - nick's blog
This post will focus on building a lodash style library. The output of the JS bundle will be supported by both ES5 and...
Read more >
Can Rollup & Plugins convert the majority of legacy libraries to ...
I.e. convert commonJS, iife, umd, amd, (and other) library formats into esm, or can at least be bundled into an esm bundle? plugins...
Read more >
Add possibility to disable code splitting / chunks generation
I want to use Rollup because I'm working around a bug that prevents me from using ES6 modules natively in Firefox extension content...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found