From 32fdf05eb185a3d0ffd6bba5791763ba5f3a5681 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Wed, 3 Aug 2022 19:03:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(cli):=20=E7=94=9F=E6=88=90=E7=9A=84entry?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8D=E5=86=8D=E5=9C=A8window=E6=8C=82?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=EF=BC=8C=E9=80=9A=E8=BF=87=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=8C=82=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/cli/src/utils/prepareEntryFile.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/cli/src/utils/prepareEntryFile.ts b/packages/cli/src/utils/prepareEntryFile.ts index 49370d6c..00954091 100644 --- a/packages/cli/src/utils/prepareEntryFile.ts +++ b/packages/cli/src/utils/prepareEntryFile.ts @@ -27,13 +27,11 @@ const generateContent = (type: EntryType, map: Record, component }); const exportToken = `${type}s`; - const capitalToken = exportToken.charAt(0).toUpperCase() + exportToken.slice(1); return prettyCode(`${importDeclarations.join(';')} const ${exportToken}: Record = { ${list.join(',')} } - window.magicPreset${capitalToken} = ${exportToken}; export default ${exportToken}; `); };