Adds @xuqm/vue3-sdk/private entry point with JSON-based initialization, feature gating, and error codes for private deployment scenarios. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
32 行
735 B
TypeScript
32 行
735 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import dts from 'vite-plugin-dts'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
dts({ include: ['src'], insertTypesEntry: true }),
|
|
],
|
|
build: {
|
|
lib: {
|
|
entry: {
|
|
index: resolve(__dirname, 'src/index.ts'),
|
|
'private/index': resolve(__dirname, 'src/private/index.ts'),
|
|
},
|
|
name: 'XuqmVue3SDK',
|
|
formats: ['es', 'cjs'],
|
|
fileName: (format, entryName) => `${entryName}.${format}.js`,
|
|
},
|
|
rollupOptions: {
|
|
external: ['vue'],
|
|
output: {
|
|
globals: { vue: 'Vue' },
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: { '@': resolve(__dirname, 'src') },
|
|
},
|
|
})
|