From 95e72342d1276c28e9816fe65f5e501953bc266e Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Mon, 30 Sep 2024 18:50:22 -0400 Subject: [PATCH] alias three --- vite.config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 861b04b..a61d3f5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,4 +4,9 @@ import react from '@vitejs/plugin-react-swc' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], -}) + resolve: { + alias: { + 'three': 'https://esm.sh/three@0.169.0' + } + } +}); \ No newline at end of file