Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Nov 22, 2023
1 parent 1eb9098 commit a1ca049
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler/transformers/style-imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const updateCjsStyleRequires = (

moduleFile.cmps.forEach((cmp) => {
cmp.styles.forEach((style) => {
if (typeof style.styleIdentifier === 'string' && style.externalStyles.length > 0) {
if (style.externalStyles.length > 0) {
// add style imports built from @Component() styleUrl option
styleRequires.push(...createCjsStyleRequire(transformOpts, tsSourceFile, cmp, style));
}
Expand Down
1 change: 0 additions & 1 deletion src/runtime/test/fixtures/cmp-a.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { format } from './utils';

@Component({
tag: 'cmp-a',
styleUrl: 'cmp-a.css',
shadow: true,
})
export class CmpA {
Expand Down

0 comments on commit a1ca049

Please sign in to comment.