Skip to content

Commit

Permalink
fix Prism bundle size increase
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Sep 13, 2024
1 parent 3b6987d commit 200ced7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ export default function prismIncludeLanguages(
// eslint-disable-next-line global-require
require('prismjs/components/prism-markup-templating.js');
}
// eslint-disable-next-line global-require, import/no-dynamic-require
require(`prismjs/components/prism-${lang}`);

// TODO fix this for Rspack

// require(`prismjs/components/prism-${lang}`);
});

delete (globalThis as Optional<typeof globalThis, 'Prism'>).Prism;
Expand Down

0 comments on commit 200ced7

Please sign in to comment.