Skip to main content
Seki Mai
New Member
October 2, 2026
Question

Publishing a Make Kit removes component exports from the generated package entrypoint

I'm seeing an issue where publishing a Make Kit removes the component exports from the package root and creates an effectively empty JavaScript bundle. This worked in earlier versions of the kit.

 

EXPECTED BEHAVIOR

Components exported from src/components/index.ts should be importable from the package root after publishing.

 

ACTUAL BEHAVIOR

After publishing:

• dist/index.js contains only:

/* empty css */

• dist/index.d.ts contains only:

import './styles/index.css';

• Imports from the package root fail because no components are exported.

The generated src/index.ts contains only:

// Auto-generated entrypoint

import './styles/index.css';

 

REPRODUCTION

1. Export components from src/components/index.ts.

2. Add the following export to src/index.ts:

export * from './components';

3. Publish the Make Kit.

4. Inspect src/index.ts and the generated dist files.

5. The component export is no longer present, and the root JavaScript bundle contains no component code.

 

I ALSO TRIED

• Creating a separate barrel file

• Editing the exports field in package.json

These changes worked locally but were removed or reverted when the kit was published.

 

WORKAROUND

Configuring src/components/index.ts as an additional Vite library entry generates:

dist/components/index.js

This allows consumers to import components from the subpath.

 

QUESTION

Is there a supported Make Kit entrypoint convention or configuration for publishing component exports?

Or is the generated entrypoint behavior unexpected?

4 replies

Jaycee Lewis
Figmate
Figmate
October 2, 2026

Hey hey ​@Seki Mai 🤩 Thanks for reporting this. One question — Does the same issue occur in a newly created Make Kit with a single exported component, or only when republishing this existing kit?

Thank you! — Jaycee

Seki Mai
Seki MaiAuthor
New Member
October 6, 2026

Hi ​@Jaycee Lewis , thanks for the quick response!

 

So far, I’ve only reproduced the issue when republishing the existing kit. I haven’t yet tested it with a newly created Make Kit containing a single exported component, so I can’t confirm whether it also affects new kits

 

Thank you!

 

Jaycee Lewis
Figmate
Figmate
October 6, 2026

Hey ​@Seki Mai 👋 Thanks for the additional details. I opened a support ticket for this. The ID is 2174958 and the email subject line is Republishing a Make Kit removes component exports from the package root. Please keep an eye on your email (and spam folder if necessary) for the email and any replies from our team. Thank you! — Jaycee

Seki Mai
Seki MaiAuthor
New Member
October 7, 2026

Hi ​@Jaycee Lewis ,

Thank you for opening the support ticket. I’ve received the email successfully and will follow up with the support team there.

Thanks again for your help!