Skip to content

Turn one illustration into an animated 2D mesh avatar with a coding agent and a local editor

Resolve the element from source in tests

shinshin866046d010e1e7
diff --git a/vite.config.ts b/vite.config.ts
index 810182a..262232a 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -6,7 +6,10 @@ import { localProjectsPlugin } from './src/server/local-projects';
import { mediapipeAssets } from './src/server/mediapipe-assets';
import { liveRelay } from './src/server/live-relay';
export default defineConfig({
- resolve: { alias: { 'mesh-avatar': fileURLToPath(new URL('./packages/runtime/src/index.ts', import.meta.url)) } },
+ resolve: { alias: {
+ 'mesh-avatar': fileURLToPath(new URL('./packages/runtime/src/index.ts', import.meta.url)),
+ 'mesh-avatar-element': fileURLToPath(new URL('./packages/element/src/index.ts', import.meta.url)),
+ } },
server: { host: '127.0.0.1' },
plugins: [react(), localProjectsPlugin(fileURLToPath(new URL('.', import.meta.url))), mediapipeAssets(fileURLToPath(new URL('.', import.meta.url))), liveRelay(fileURLToPath(new URL('.', import.meta.url))), {
name: 'sample-rig',