I have noticed some errors concerning the import of libraries.  For example, require("bertin") does'nt work in [Quarto](https://quarto.org/docs/tools/rstudio.html). The following error is returned: OJS Error. RequireError$1: invalid module. To import bertin, I have to write: bertin = import('https://cdn.skypack.dev/bertin@0.9'). However, require("bertin") works in Observable. Within rstudio, preview in Viewer Pane works. Preview in window doesn't work. Similarly, the html file rendered via quarto render works. 
![Screenshot from 2022-05-19 10-53-08](https://user-images.githubusercontent.com/8111373/169254224-e7006ba1-9b00-4bec-afde-a08ab8e77fe9.png)

Code to reproduce the bug (within an ojs cell).
(ubuntu 22.04, Rstudio 2022.06.0-daily+420, Quarto 0.9.434)

````
```{ojs}
bertin = require("bertin@0.9.16")
```
````
cscheid
2022-05-19T08:37:09Z
neocarto
bug ojs-engine
closed
OJS Error. RequireError$1: invalid module. 
https://github.com/quarto-dev/quarto-cli/issues/943