Skip to content

Commit 56af93a

Browse files
committed
fixup: build monolith again
1 parent 56ef081 commit 56af93a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/stub.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import HighlightJS from "./highlight.js";
22
// @ts-ignore
3-
import * as builtIns from "builtInLanguages"
3+
import * as builtIns from "builtInLanguages";
44

55
const hljs = HighlightJS;
66

7-
for (const languageName of Object.keys(builtIns)) {
8-
hljs.registerLanguage(languageName, builtIns[languageName]);
7+
for (const key of Object.keys(builtIns)) {
8+
const languageName = key.replace("grmr_", "");
9+
hljs.registerLanguage(languageName, builtIns[key]);
910
}
1011
// console.log(hljs.listLanguages());
1112

0 commit comments

Comments
 (0)