Skip to content

Commit 5050153

Browse files
committed
fix(breadcrumb): disable attributePassing in Stencil config to prevent Host wrapper
1 parent e062500 commit 5050153

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/components/configs/stencil/index.cjs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ const onClickPlugin = require('../plugins/on-click.cjs');
55
*/
66
module.exports = {
77
typescript: true,
8-
attributePassing: {
9-
enabled: true,
10-
customRef: '_ref'
8+
attributePassing: (component) => {
9+
// Disable attribute passing for breadcrumb to prevent Host wrapper generation
10+
if (component?.path?.includes('/breadcrumb/breadcrumb')) {
11+
return { enabled: false };
12+
}
13+
return {
14+
enabled: true,
15+
customRef: '_ref'
16+
};
1117
},
1218
plugins: [onClickPlugin]
1319
};

0 commit comments

Comments
 (0)