Overview of @quarto/external-observablehq-stdlib
mainThe @quarto/external-observablehq-stdlib package is a fork of @observablehq/stdlib specifically modified to ensure compatibility with the RStudio IDE. It addresses two primary constraints of the RStudio environment:
- Require Compatibility: The build process (producing
dist/stdlib.js) utilizes a fork ofd3-require. This enables arequire()function that operates correctly both within the Observable runtime and inside IPython's HTMLwidgets. - JS Stdlib Compatibility: To avoid errors caused by the older version of the JavaScript standard library used in the RStudio IDE, this fork avoids calling
Object.fromEntries.