lava-dt-sql-parser-semantic.../vite.config.ts
Kijin-Seija d7cbadf1db init
2024-04-07 19:10:38 +08:00

20 lines
441 B
TypeScript

import { resolve } from 'path'
import { defineConfig } from 'vite'
import { nodePolyfills } from 'vite-plugin-node-polyfills'
export default defineConfig({
build: {
outDir: 'dist/lib',
lib: {
entry: resolve(__dirname, 'src/index.ts'),
name: 'DtSqlParserSemanticAnalysePlugin',
fileName: 'dt-sql-parser-semantic-analyse-plugin',
}
},
plugins: [
nodePolyfills({
include: ['util'],
}),
]
})