Skip to content

Commit

Permalink
fix(ssr): allow capital letters in component names (#4561)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Sep 18, 2024
1 parent e9480f5 commit 4070d6d
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$/;
const componentNamePattern = /(?<componentName>[^/]+)\.[tj]s$/;

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

0 comments on commit 4070d6d

Please sign in to comment.