Skip to content

Commit a22015a

Browse files
committed
Add webpackMode:eager to import of markdown-it so it will be placed in the same bundle.
1 parent e8d3f68 commit a22015a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

markdownlint-cli2.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,8 @@ const lintFiles = (fs, dirInfos, fileContents) => {
757757
// Create markdown-it factory
758758
// eslint-disable-next-line unicorn/consistent-function-scoping
759759
const markdownItFactory = async () => {
760-
const module = await import("markdown-it");
760+
// eslint-disable-next-line no-inline-comments
761+
const module = await import(/* webpackMode: "eager" */ "markdown-it");
761762
const markdownIt = module.default({ "html": true });
762763
for (const plugin of (markdownlintOptions.markdownItPlugins || [])) {
763764
markdownIt.use(...plugin);

0 commit comments

Comments
 (0)