Feature request | Export component without internal child components

I have a request I would love to have some feedback on from you guys.
Whenever I export a component that has other components inside, for example:
We have a full section slider component that uses other components like our custom heading or text component it will export the whole component with the others too. When you import the component in another site, it also imports the child components seperatly. The heading and text element is something we always have inside our stack of components from the website we fork from. This means we always have to either strip the component before exporting or figure out what components are the duplicate ones on the new site.

would love a feature that ignores the components on the inside and is just the parent.

Hey @100leiden,

Thank you for your feedback. We’ve listed this as a feature request.

This issue occurs because Cornerstone exports components as self-contained bundles. To guarantee that a component works when imported into a new site, Cornerstone automatically packages all nested child components (like your custom heading or text components) along with the parent.

Since the import manager cannot verify if the destination site’s existing components are identical or if they have different configuration histories, it creates new, duplicated instances to avoid accidentally overwriting any existing custom components on the destination site.

To mitigate or avoid this duplication, you can consider the following approaches:

1. Convert Child Components to Styled Elements (Recommended)

If your custom heading and text elements do not absolutely need to be registered as standalone Components in the Component Library, you can build them inside your parent component as standard, native Cornerstone elements (e.g., the native Heading and Text elements) styled using:

  • Global CSS / Element CSS
  • Global Parameters
  • Presets

Because they are native elements rather than custom registered components, Cornerstone will not treat them as dependencies, and they will not be exported or duplicated.

2. Post-Import Re-linking (Clean Up)

If they must remain child components:

  1. Import the parent component onto the new site.
  2. Open the newly imported parent component in the builder.
  3. Delete the duplicated child components from the parent and replace them with the site’s existing/original child components.
  4. Go to the Component Library and delete the duplicated child components to keep the site clean.