Embedding in react, issue with fileattachments/babel

hi @mbrownshoes if you’re using create-react-app you might want to look at this thread

and see Mike’s example here GitHub - observablehq/react-zoomable-sunburst: create-react-app + observablehq

you could also use their react example using rollup to bundle it

This Rollup configuration supports file attachments, whereas many React environments (like the one you get from create-react-app ) stumble on file attachments’ use of import.meta.

2 Likes