Skip to content

Commit

Permalink
tools: import only highlight.js core
Browse files Browse the repository at this point in the history
Importing everything from highlight.js won't work in without-intl
builds. Import only core, as the code is already written to load
individual languages as needed.

Fixes: nodejs#41077
  • Loading branch information
Trott committed Dec 4, 2021
1 parent c802c4b commit a08a95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/html.mjs
Expand Up @@ -22,7 +22,7 @@
import fs from 'fs';
import path from 'path';

import highlightJs from 'highlight.js';
import highlightJs from 'highlight.js/lib/core';
import raw from 'rehype-raw';
import htmlStringify from 'rehype-stringify';
import gfm from 'remark-gfm';
Expand Down

0 comments on commit a08a95f

Please sign in to comment.