Svelte Mode For CodeMirror
Include lib/index.js
in your HTML, Svelte Mode Also Requires:
addon/mode/overlay.js
mode/xml/xml.js
mode/javascript/javascript.js
mode/css/css.js
mode/htmlmixed/htmlmixed.js
It is automatically included when using the npm package:
npm i codemirror-mode-svelte
Original Author of the mode is Juan Gomez who made a Pull Request To Add The Mode in CodeMirror 5 Library.