Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fudgepop01/svelte-monaco-editor-example
a basic example of using monaco editor with sveltejs
https://github.com/fudgepop01/svelte-monaco-editor-example
Last synced: 8 days ago
JSON representation
a basic example of using monaco editor with sveltejs
- Host: GitHub
- URL: https://github.com/fudgepop01/svelte-monaco-editor-example
- Owner: fudgepop01
- Created: 2019-10-13T21:54:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T23:21:42.000Z (about 2 years ago)
- Last Synced: 2024-04-28T04:08:39.946Z (9 months ago)
- Language: JavaScript
- Size: 281 KB
- Stars: 21
- Watchers: 3
- Forks: 10
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# monaco editor in sveltejs
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:
- it's an esm export (meaning you'll need to import it using ``)
- rollup generates a new bundle for monaco and its dependencies
every time you want to change the configuration a little.
- it takes forever for rollup to bundle all the monaco stuff, possibly
due to the `'this' has been replaced by 'undefined'` warnings lol---
anyway, here's how to start it upon cloning the repo:
```cmd
npm install
npm run dev
```