MCPcopy
hub / github.com/highlightjs/highlight.js / buildNodeHighlightJS

Function buildNodeHighlightJS

tools/build_node.js:87–95  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

85}
86
87async function buildNodeHighlightJS(options) {
88 const input = { ...config.rollup.core.input, input: `src/highlight.js` };
89 const output = { ...config.rollup.node.output, file: `${process.env.BUILD_DIR}/lib/core.js` };
90 output.footer = "highlight.HighlightJS = highlight;\nhighlight.default = highlight;";
91 await rollupWrite(input, output);
92 if (options.esm) {
93 buildESMStub("core");
94 }
95}
96
97function dual(file) {
98 return {

Callers 1

buildNodeFunction · 0.85

Calls 2

rollupWriteFunction · 0.85
buildESMStubFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…