metonym / svelte-highlight

Syntax Highlighting for Svelte using highlight.js
https://svhe.onrender.com
MIT License
253 stars 13 forks source link

`optimizeDeps.include` is no longer required #244

Closed metonym closed 1 year ago

metonym commented 1 year ago

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).