mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 00:02:51 +08:00
chore: 忽略vite警告
This commit is contained in:
parent
3d241e85f2
commit
a7958358e0
@ -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…
Reference in New Issue
Block a user