contributions/CustomJsLibrary.md
$ cd app/client
$ yarn install myLibrary
app/client/src/worker/common/JSLibrary/index.ts find the const defaultLibraries and add details about your library in the codebaseimport myLibrary from "myLibrary";
...
...
const defaultLibraries = [
...
{
accessor: "myLibrary",// The namespace for access
lib: myLibrary, // the javascript module from npm
version: "3.17.5", // version number of the module
docsURL: "https://github.com/NaturalIntelligence/fast-xml-parser",
displayName: "xmlParser", // Display name on the left pane
},
]
app/client/src/utils/autocomplete/CodemirrorTernService.ts
app/client/src/constants/defs/DEFS array right at the top of fileconst DEFS = [..., myLibraryDef];
Notes: