Skip to content
Discussion options

You must be logged in to vote

Importing from node_modules won't really work because although those are also Javascript, nodejs libraries are not compatible with the browser environment. However, if you have local javascript libraries in your project which work in a browser and you want to reuse them, you can import from them directly. See https://quarto.org/docs/interactive/ojs/code-reuse.html. (Do note that they need to be ES modules.)

```{ojs}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mcanouil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants