mirror of https://github.com/sgoudham/carbon.git
remove lib/modes
parent
ddc611a6f9
commit
6e46b1c23b
@ -1,15 +0,0 @@
|
|||||||
import { LANGUAGES } from './constants'
|
|
||||||
|
|
||||||
const modes = LANGUAGES.filter(
|
|
||||||
language =>
|
|
||||||
language.mode &&
|
|
||||||
language.mode !== 'auto' &&
|
|
||||||
language.mode !== 'text' &&
|
|
||||||
language.mode !== 'javascript'
|
|
||||||
).forEach(language =>
|
|
||||||
language.custom
|
|
||||||
? require(`./custom/modes/${language.mode}`)
|
|
||||||
: require(`codemirror/mode/${language.mode}/${language.mode}`)
|
|
||||||
)
|
|
||||||
|
|
||||||
export default modes
|
|
Loading…
Reference in New Issue