Skip to content

Commit 56ef081

Browse files
committed
fixup: build monolith
1 parent 98e65a9 commit 56ef081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/build_browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async function buildBrowserHighlightJS(languages, { minify }) {
175175
},
176176
load: (id) => {
177177
if (id == "builtInLanguages") {
178-
let escape = (s) => s.replace("-","_");
178+
const escape = (s) => "grmr_" + s.replace("-", "_");
179179
let src = "";
180180
src += languages.map((x) => `import ${escape(x.name)} from '${x.path}'`).join("\n");
181181
src += `\nexport {${languages.map((x) => escape(x.name)).join(",")}}`;

0 commit comments

Comments
 (0)