Skip to content

Commit efc58a7

Browse files
committed
fix(compiler): Prevent extTransformsPlugin from outputting collection dependency css
1 parent 1d3cbd6 commit efc58a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

3636
if (data.tag) {
3737
cmp = buildCtx.components.find((c) => c.tagName === data.tag);
38-
const moduleFile = cmp && compilerCtx.moduleMap.get(cmp.sourceFilePath);
38+
const moduleFile = cmp && !cmp.isCollectionDependency && compilerCtx.moduleMap.get(cmp.sourceFilePath);
3939

4040
if (moduleFile) {
4141
const collectionDirs = config.outputTargets.filter(isOutputTargetDistCollection);

0 commit comments

Comments
 (0)