Hi @mbostock, sorry for the simple question but how we can do this:
I’m using webpack (clustergrammer-gl/webpack.config.js at master · ismms-himc/clustergrammer-gl · GitHub).
Update
I’m following the link from https://bundle.run/ to pkg.module · rollup/rollup Wiki · GitHub, which appears to contain the information I need to make an AMD/UMD compatible bundle (will update).
I tried following what was happening behind the scenes on bundle.run (GitHub - Rich-Harris/packd: Rollup as a service (with a little help from Browserify)) and using browserify:
$ browserify clustergrammer-gl.js > clustergrammer-gl.0.11.10.bundle.js
But I’m getting an invalid module error with that file.
Solution
I followed the instructions to host my own local instance (GitHub - Rich-Harris/packd: Rollup as a service (with a little help from Browserify)) and was able to bundle the package. This feels like a convoluted solution but it appears to work. I’ll update when I understand how to do this in a more streamlined manner (e.g. build the bundle automatically, add it into the package.json, have it hosted on a CDN).