refactor(project): @vben/vite-connect is reconfigured to support synchronization
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
import { defineConfig } from '@vben/vite-config';
|
||||
|
||||
export default defineConfig({
|
||||
vite: {
|
||||
build: {
|
||||
lib: {
|
||||
entry: {
|
||||
antd: 'src/antd/index.ts',
|
||||
index: 'src/index.ts',
|
||||
export default defineConfig(async () => {
|
||||
return {
|
||||
vite: {
|
||||
build: {
|
||||
lib: {
|
||||
entry: {
|
||||
antd: 'src/antd/index.ts',
|
||||
index: 'src/index.ts',
|
||||
},
|
||||
fileName: (_format, name) => `${name}.mjs`,
|
||||
},
|
||||
fileName: (_format, name) => `${name}.mjs`,
|
||||
},
|
||||
publicDir: 'src/bem',
|
||||
},
|
||||
publicDir: 'src/bem',
|
||||
},
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user