Skip to content

Commit

Permalink
fix: simplify even further
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Sep 17, 2024
1 parent c5408df commit 0632f22
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_-]+)\.[tj]s$/i;
const componentNamePattern = /(?<componentName>[^/]+)\.[tj]s$/;

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

0 comments on commit 0632f22

Please sign in to comment.