This is an example of how to incorperate monaco editor into a sveltejs project that uses rollup. This technique was shamlessly ripped straight from https://github.com/sveltejs/svelte-repl.
Here are the current limitations / things I don't yet know how to fix:
<script type="module" ...>
)'this' has been replaced by 'undefined'
warnings lolanyway, here's how to start it upon cloning the repo:
npm install
npm run dev