about summary refs log tree commit diff
path: root/bskyembed/vite.config.ts
blob: 1f5ec0ed9e39078583e74963d298051f53284a3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import {resolve} from 'node:path'

// @ts-expect-error - not important
import preactRefresh from '@prefresh/vite'
import type {UserConfig} from 'vite'
import paths from 'vite-tsconfig-paths'

const config: UserConfig = {
  jsx: {
    factory: 'h',
    fragment: 'Fragment',
  },
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call
  plugins: [preactRefresh(), paths()],
  assetsDir: 'static/embed/assets',
}

export default config