From 383ff495aa33b0130b704a989565c506519ac0b9 Mon Sep 17 00:00:00 2001 From: Uyarn Date: Mon, 17 Jul 2023 18:54:03 +0800 Subject: [PATCH] fix: manifest effects chunk --- gulp/generate-manifest.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gulp/generate-manifest.ts b/gulp/generate-manifest.ts index d38e5d5d..e1cd7020 100644 --- a/gulp/generate-manifest.ts +++ b/gulp/generate-manifest.ts @@ -15,10 +15,15 @@ ${content} return createTransformStream((content) => getWrapper(content)); } +// eslint-disable-next-line @typescript-eslint/no-unused-vars function useItemTemplate(type?:string) { - const isAngular = type === 'angular'; // angular has different component path + // const isAngular = type === 'angular'; // angular has different component path + // function getItem(stem: string) { + // return ` { stem: "${stem}", icon: "${upperCamelCase(stem)}", path: () => import('./components/${isAngular ? `${stem}.component` : stem}') },`; + // } + function getItem(stem: string) { - return ` { stem: "${stem}", icon: "${upperCamelCase(stem)}", path: () => import('./components/${isAngular ? `${stem}.component` : stem}') },`; + return ` { stem: "${stem}", icon: "${upperCamelCase(stem)}" },`; } return createTransformStream((_, { stem: name }) => getItem(name));