Skip to content

Commit 28e2a06

Browse files
fix(compiler): Prevent extTransformsPlugin from outputting collection dependency css (#3306)
Co-authored-by: Christian Bromann <git@bromann.dev>
1 parent 6ff8075 commit 28e2a06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/bundle/ext-transforms-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const extTransformsPlugin = (
9393

9494
if (data.tag) {
9595
cmp = buildCtx.components.find((c) => c.tagName === data.tag);
96-
const moduleFile = cmp && compilerCtx.moduleMap.get(cmp.sourceFilePath);
96+
const moduleFile = cmp && !cmp.isCollectionDependency && compilerCtx.moduleMap.get(cmp.sourceFilePath);
9797

9898
if (moduleFile) {
9999
const collectionDirs = config.outputTargets.filter(isOutputTargetDistCollection);

0 commit comments

Comments
 (0)