metonym/svelte-highlight

`optimizeDeps.include` is no longer required

Closed this issue · 0 comments

Both SvelteKit and the Svelte Vite plugin will now attempt to prebundle all Svelte libraries.

This means that the following config is no longer required for SvelteKit/Vite set-ups:

- optimizeDeps: {
-   include: ["highlight.js", "highlight.js/lib/core"],
- },

This should be noted in the docs. However, the recent change is still quite new (for SvelteKit, it was enabled late October and the new version of the Svelte plugin was released just yesterday).