Genesis
This commit is contained in:
15
vite.config.ts
Normal file
15
vite.config.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from 'vite'
|
||||
import path from 'path'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
// The git HEAD of react-automat doesn't ship pre-built dist/.
|
||||
// Resolve directly to the ESM source so Vite bundles it.
|
||||
'react-automat': path.resolve(import.meta.dirname, 'node_modules/react-automat/src/lib/index.js'),
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user