Can't seem to build with Rollup.js (0.41.4) / possibility of converting to ES6 modules?
See original GitHub issueI’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:
- Created 7 years ago
- Comments:16 (16 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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.