File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1- import "../../assets/styles/landing.scss" ;
1+ import * as hljs from "highlight.js/lib/highlight" ;
2+ import * as lua from "highlight.js/lib/languages/lua" ;
3+ import * as typescript from "highlight.js/lib/languages/typescript" ;
24import "highlight.js/styles/vs2015.css" ;
5+ import "../../assets/styles/landing.scss" ;
36
4- import { configure , highlightBlock } from "highlight.js" ;
5-
6- configure ( { languages : [ "typescript" , "lua" ] } ) ;
7+ hljs . registerLanguage ( "lua" , lua ) ;
8+ hljs . registerLanguage ( "typescript" , typescript ) ;
79
8- document . querySelectorAll ( ".example-item" ) . forEach ( highlightBlock ) ;
10+ document . querySelectorAll ( ".example-item" ) . forEach ( hljs . highlightBlock ) ;
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ declare module "worker-loader!*" {
77}
88
99declare module "fengari-web" ;
10+ declare module "highlight.js/lib/*" ;
You can’t perform that action at this time.
0 commit comments