v5.3.2
Documentation
- specify in docs that vite should optimize both "highlight.js" and "highlight.js/lib/core" if using SvelteKit or vite
# svelte.config.js
export default {
kit: {
+ vite: {
+ optimizeDeps: {
+ include: ["highlight.js", "highlight.js/lib/core"],
+ },
+ },
},
};