mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +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) => {
|
export const createComponent = async (targetData: ConfigType) => {
|
||||||
const { virtualComponent, category, key } = targetData
|
const { virtualComponent, category, key } = targetData
|
||||||
const chart = await import(
|
const componentPath = virtualComponent
|
||||||
virtualComponent
|
|
||||||
? `${virtualComponent}/config.ts`
|
? `${virtualComponent}/config.ts`
|
||||||
: `./components/${targetData.package}/${category}/${key}/config.ts`
|
: `./components/${targetData.package}/${category}/${key}/config.ts`
|
||||||
)
|
const chart = await import(/* @vite-ignore */ componentPath)
|
||||||
return new chart.default()
|
return new chart.default()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user