mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 11:09:13 +00:00
add react support into lib
This commit is contained in:
@@ -5,9 +5,10 @@ export function getAllComponents(metadata) {
|
||||
module.declarations?.map(declaration => {
|
||||
if (declaration.customElement) {
|
||||
const component = declaration;
|
||||
const modulePath = module.path;
|
||||
|
||||
if (component) {
|
||||
allComponents.push(component);
|
||||
allComponents.push(Object.assign(component, { modulePath }));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user