observablehq / examples

Examples of using Observable in a variety of contexts
108 stars 33 forks source link

fix react examples #8

Closed mbostock closed 3 years ago

mbostock commented 3 years ago

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.

tophtucker commented 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

mbostock commented 3 years ago

Fixed that issue. I was too hasty in my pruning of the Rollup config.