(I understand that you've had a few issues around dependencies lately! Please feel free to shut this down if it's not appropriate.)

I've been experimenting with importing a newer version of Observable Plot than the one bundled with Quarto so that I can take advantage of newer features (eg. the new ARIA accessibility support in [Observable Plot 0.4.1](https://github.com/observablehq/plot/blob/main/CHANGELOG.md#041)). It _seems_ like it's as easy as changing the reference in the `esbuild-bundle.js` included in my built project files:

```js
var q = T("@observablehq/inputs", "0.9.1", "dist/inputs.min.js");
var M = T("@observablehq/plot", "0.2.0", "dist/plot.umd.min.js");
```

If I `quarto render`, modify the bundle file and then run another web server, it seems to work well (although I acknowledge that "my one sample plot worked with a new feature" isn't a thorough test regime!).

What I'm hoping is that there might be a way for me to flag the Plot (or Inputs) version that Quarto builds from - either on a per-project basis or, failing that, just globally for my Quarto installation- so that I don't have to make this modification every time I `quarto render`.

I can see that there's a [`src/resources/formats/html/ojs/esbuild-bundle.js`](https://github.com/quarto-dev/quarto-cli/blob/2a16e6ce2b6f62209b881a27c5bdfaf3d29a27f5/src/resources/formats/html/ojs/esbuild-bundle.js) i nthe installation; I'm assuming that gets copied in when I `quarto render`. I can also see from the `README` in that folder that this bundle gets built from the [`stdlib.js`](https://github.com/quarto-dev/quarto-cli/blob/2a16e6ce2b6f62209b881a27c5bdfaf3d29a27f5/src/resources/formats/html/ojs/stdlib.js) file, which also refers to the Plot and Inputs versions, and that's there's a `quarto build-js` command to run this build (although I get `Error executing '/Users/james/Applications/quarto/bin/esbuild': No such file or directory` when I try to run it).

I'm not quite sure how to bring these pieces together. It seems like the easy way could be to edit the bundle file that Quarto's sitting on, although I can't find the corresponding file in my installation. It also seems intuitively like I might introduce dependency problems for myself if I modify the bundle myself rather than modifying its sources. Is there a way I can try this out (on a _strictly_ at-your-own-risk basis, since I'm not asking you to change your schedule for managing Quarto's dependencies)? or should I just continue to modify the bundle file that is created when I `render`?
2022-03-18T03:16:00Z
jimjam-slam
closed
Tracking newer Observable Plot (or Inputs) releases
https://github.com/quarto-dev/quarto-cli/issues/435