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}; `); };