init commit
This commit is contained in:
16
vite.config.ts
Normal file
16
vite.config.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { resolve } from 'node:path'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
resolve: { alias: { '~': resolve(__dirname, './src') } },
|
||||
build: {
|
||||
lib: {
|
||||
name: 'tg-bot',
|
||||
fileName: 'index',
|
||||
entry: resolve(__dirname, 'src', 'index.ts')
|
||||
},
|
||||
rollupOptions: {
|
||||
external: ['telegraf', 'dotenv']
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user