Skip to content

Commit

Permalink
chore: add correct export definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayden Naydenov committed Nov 26, 2023
1 parent 0d84bbd commit 75e62dd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/tools/lib/cem/custom-elements-manifest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,21 @@ export default {
i--;
}
}

moduleDoc.exports?.forEach(e => {
const classNode = moduleDoc.declarations.find(c => c.name === e.declaration.name);

if (classNode?.customElement && e.kind !== "custom-element-definition") {
moduleDoc.exports.push({
kind: "custom-element-definition",
name: classNode.tagName,
declaration: {
name: e.declaration.name,
module: e.declaration.module
}
})
}
})
},
packageLinkPhase() {
// Uncomment and handle errors appropriately
Expand Down

0 comments on commit 75e62dd

Please sign in to comment.