CodeMirror-minified icon indicating copy to clipboard operation
CodeMirror-minified copied to clipboard

How to include a mode using require?

Open mouhannad-sh opened this issue 7 years ago • 1 comments

Hello, I tried to use this package with codemirror to import some modes but I can't seem to make it work.

here's a codesandbox https://codesandbox.io/s/204qxk6ml0

I think there could be a closure issue in the mode, it's always returning a empty object {} instead of a function

Thanks

mouhannad-sh avatar Aug 18 '18 13:08 mouhannad-sh

Does that work with the non-minified version of CodeMirror? IIRC the modes don't export anything so I'm not sure if requiring them as CommonJS modules ever worked.

Dominator008 avatar Feb 15 '19 11:02 Dominator008