Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

monorepo / venus

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 1
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • venus
  • internal
  • vite-config
  • src
  • plugins
  • vxe-table.ts
  • Jaxon's avatar
    feat: 添加并适配新项目 · 91142695
    Jaxon committed Jan 08, 2026
    91142695
vxe-table.ts 391 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import type { PluginOption } from "vite";

import { lazyImport, VxeResolver } from "vite-plugin-lazy-import";

async function viteVxeTableImportsPlugin(): Promise<PluginOption> {
	return [
		lazyImport({
			resolvers: [
				VxeResolver({
					libraryName: "vxe-table",
				}),
				VxeResolver({
					libraryName: "vxe-pc-ui",
				}),
			],
		}),
	];
}

export { viteVxeTableImportsPlugin };