React + TypeScript knob/fader library with a headless interaction core (rotary, relative-drag and track modes, wheel, keyboard, a11y), SVG primitives, nine prebuilt skins, seven-segment display engine, and a Vite showcase with gallery, live playground and API docs.
13 lines
387 B
TypeScript
13 lines
387 B
TypeScript
import react from '@vitejs/plugin-react';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
// Use library sources directly for instant HMR while developing.
|
|
dreamknob: fileURLToPath(new URL('../../packages/dreamknob/src/index.ts', import.meta.url)),
|
|
},
|
|
},
|
|
});
|