From 25a2c5ebe6b62f72fdf145c3a6867475effa8d80 Mon Sep 17 00:00:00 2001 From: Mike Lynch Date: Thu, 2 Nov 2023 16:52:40 +1100 Subject: [PATCH] Added a manual chunks setting to stop Vite complaining on build --- vite.config.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index d64114d..d29e4c0 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,5 +3,14 @@ import { defineConfig, loadEnv } from 'vite'; export default defineConfig({ - base: '/fourjs/' + base: '/fourjs/', + build: { + rollupOptions: { + output: { + manualChunks: { + threejs: [ 'three' ] + } + } + } + } })