Highlight.js takes a very long time to prepare? #3567
Unanswered
tom-sherman
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm setting up a snowpack project with React + Spectacle.
The preperation of dependencies goes about as fast as I'm used to from other projects (ie. very fast), until it hits highlight.js.
This dependency has many files under
lib/languages
, but because of their tiny size I wouldn't expect them to take so long to prepare? Yet they take a few seconds per file. Could someone explain why this happens and if it's possible to improve it?Here's an example of one of the files (haskell)
I can create a reproduction repo but all I did was
npx create-snowpack-app . --template @snowpack/app-template-react-typescript --force
,npm i spectacle
andnpm run start
.Beta Was this translation helpful? Give feedback.
All reactions