Added a manual chunks setting to stop Vite complaining on build

pull/10/head
Mike Lynch 2023-11-02 16:52:40 +11:00
parent 5494660d76
commit 25a2c5ebe6
1 changed files with 10 additions and 1 deletions

View File

@ -3,5 +3,14 @@
import { defineConfig, loadEnv } from 'vite'; import { defineConfig, loadEnv } from 'vite';
export default defineConfig({ export default defineConfig({
base: '/fourjs/' base: '/fourjs/',
build: {
rollupOptions: {
output: {
manualChunks: {
threejs: [ 'three' ]
}
}
}
}
}) })