lava-dt-sql-parser-semantic.../vite.config.ts

20 lines
441 B
TypeScript
Raw Normal View History

2024-04-07 19:10:38 +08:00
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'],
}),
]
})