MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / getCodeMirrorThemes

Function getCodeMirrorThemes

scripts/webpack-util.js:75–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75function getCodeMirrorThemes() {
76 const name = 'neo.css';
77 return fs.readdirSync(
78 require.resolve(`codemirror/theme/${name}`).slice(0, -name.length),
79 { withFileTypes: true },
80 ).map(e => e.isFile() && e.name.endsWith('.css') && e.name.slice(0, -4))
81 .filter(Boolean);
82}
83
84function readGlobalsFile(path, babelOpts = {}) {
85 const { ast, code = !ast } = babelOpts;

Callers 1

webpack.conf.jsFile · 0.85

Calls 2

filterMethod · 0.80
mapMethod · 0.80

Tested by

no test coverage detected