Skip to content

Commit c5736b4

Browse files
reeceyangConvex, Inc.
authored andcommitted
Filter out root component when bundling implementations (#44755)
GitOrigin-RevId: 2589cfa62d93f0c2a72bf8360099c27a8cbab3e6
1 parent 3a01192 commit c5736b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cli/lib/components.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ async function startComponentsPushAndCodegen(
295295
ctx,
296296
rootComponent,
297297
// When running codegen for a specific component, don't bundle the root.
298-
[...components.values()].filter((dir) => !dir.syntheticComponentImport),
298+
[...components.values()].filter(
299+
(dir) => !dir.isRoot && !dir.syntheticComponentImport,
300+
),
299301
projectConfig.node.externalPackages,
300302
options.liveComponentSources ? ["@convex-dev/component-source"] : [],
301303
options.verbose,

0 commit comments

Comments
 (0)