项目初始化

This commit is contained in:
2026-03-19 10:57:24 +08:00
commit ee94d420ad
3822 changed files with 582614 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/**
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
import { type PluginOption } from 'vite';
import legacy from '@vitejs/plugin-legacy';
import { legacyTargets } from '../options/build';
export function configLegacyPlugin(isBuild: boolean, viteEnv: ViteEnv): PluginOption {
if (!(isBuild && viteEnv.VITE_LEGACY)) {
return [];
}
return legacy({
targets: legacyTargets,
modernPolyfills: true,
});
}