mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 02:15:05 +03:00
This PR runs `prettier` on the `examples` folder. Depends on https://github.com/supabase/supabase/pull/43849.
34 lines
702 B
TypeScript
34 lines
702 B
TypeScript
import devServer from '@hono/vite-dev-server'
|
|
import { defineConfig } from 'vite'
|
|
|
|
// Change the import to use your runtime specific build
|
|
import build from '@hono/vite-build/node'
|
|
|
|
export default defineConfig(({ mode }) => {
|
|
if (mode === 'client')
|
|
return {
|
|
esbuild: {
|
|
jsxImportSource: 'hono/jsx/dom', // Optimized for hono/jsx/dom
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
input: './src/client.tsx',
|
|
output: {
|
|
entryFileNames: 'static/client.js',
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
return {
|
|
plugins: [
|
|
build({
|
|
entry: 'src/index.tsx',
|
|
}),
|
|
devServer({
|
|
entry: 'src/index.tsx',
|
|
}),
|
|
],
|
|
}
|
|
})
|