Skip to content

Commit

Permalink
fix: simplify further
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Sep 17, 2024
1 parent 18312c9 commit c5408df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@lwc/ssr-compiler/src/compile-js/stylesheets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function catalogStyleImport(path: NodePath<ImportDeclaration>, state: Com
state.cssExplicitImports.set(specifier.local.name, path.node!.source.value);
}

const componentNamePattern = /[/\\](?<componentName>[a-z_-]+)[/\\]\k<componentName>\.[tj]s$/i;
const componentNamePattern = /(?<componentName>[a-z_-]+)\.[tj]s$/i;

/**
* This adds implicit style imports to the compiled component artifact.
Expand Down

0 comments on commit c5408df

Please sign in to comment.