Closed mbostock closed 3 years ago
Spoke too soon: I get Uncaught ReferenceError: process is not defined
when I view this hosted locally or at https://observablehq.github.io/examples/react-dataflow
Fixed that issue. I was too hasty in my pruning of the Rollup config.
bundled-import-meta supports a mappings option that we can use to pretend that the imported notebooks are in the current directory. Then during the bundle step we copy any file attachments into the files directory so they can be served.
I also updated all the dependencies while here, and minified the generated bundle since it was >1MB.
Fixes #4. Fixes #5.