From 38bc3773233fe0f642fbfba6e7d4775a93e52657 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 17 Aug 2021 21:17:31 +0200 Subject: [PATCH] Make sure highlight.js is always lazy-loaded --- vite.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index c631e84e6..d80c6d90b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -82,7 +82,7 @@ module.exports = { build: { target: 'es2015', rollupOptions: { - plugins:[ + plugins: [ visualizer(), ], output: { @@ -98,6 +98,9 @@ module.exports = { './src/views/teams/EditTeam', './src/views/teams/NewTeam', ], + 'highlight': [ + 'highlight.js', + ], }, }, },