Skip to content

Instantly share code, notes, and snippets.

View DiegoJeptha's full-sized avatar

Diego Jeptha DiegoJeptha

View GitHub Profile
@DiegoJeptha
DiegoJeptha / codeMirror_languageModuleLoader.js
Created April 22, 2020 09:31 — forked from rigwild/codeMirror_languageModuleLoader.js
Asynchronously load a CodeMirror language module 🔍🤷‍♀️
/**
* CodeMirror NPM dynamic language module loader.
* To be used with WebPack.
*
* @example
* loadCodeMirrorModule(codeMirrorLanguages.JavaScript.codeMirrorMode)
*
* @author rigwild <https://github.com/rigwild>
* @see https://gist.github.com/rigwild/ce6b4c6a893c3a95f75cc0aca633f037
* @license MIT