Dynamic imports in monaco-editor

How can I dynamically call addExtraLibs in monaco-editor with content from custom source?

So when user typed import {} from "somelib" I got some event or hook where I could call axios.get("/libs", {params: "somelib"}) from where I got somelib source code and add it to editor.

What other way additional to monaco-editor could help me to implement this?

Source: JavaSript – Stack Overflow

October 21, 2021
Category : News
Tags: javascript | monaco-editor | typescript

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.