pmndrs / maath

🪶 Math helpers for the rest of us
https://maath.pmnd.rs
801 stars 15 forks source link

FIX local lib alias in demo #4

Closed gsimone closed 2 years ago

CodyJasonBennett commented 2 years ago

Doing something similar for react-ogl.

// vite.config.js
import path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
  resolve: {
    alias: {
      'maath': path.resolve('../packages/maath/src/index'),
    },
  },
  plugins: [react()],
})