mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
chore: 忽略vite警告
This commit is contained in:
parent
9585bd07a3
commit
4aa41bbe36
@ -30,11 +30,10 @@ export let packagesList: PackagesType = {
|
||||
*/
|
||||
export const createComponent = async (targetData: ConfigType) => {
|
||||
const { virtualComponent, category, key } = targetData
|
||||
const chart = await import(
|
||||
virtualComponent
|
||||
? `${virtualComponent}/config.ts`
|
||||
: `./components/${targetData.package}/${category}/${key}/config.ts`
|
||||
)
|
||||
const componentPath = virtualComponent
|
||||
? `${virtualComponent}/config.ts`
|
||||
: `./components/${targetData.package}/${category}/${key}/config.ts`
|
||||
const chart = await import(/* @vite-ignore */ componentPath)
|
||||
return new chart.default()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user