Skip to content

Commit

Permalink
Update packages/next-yak/loaders/cssloader.cjs
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Schneider <[email protected]>
  • Loading branch information
jantimon and Mad-Kat authored Nov 21, 2023
1 parent eff9499 commit dbf616a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/next-yak/loaders/cssloader.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ module.exports = async function cssLoader(source) {
});
}

// Store reference to AST node to allow other components to target the styled literal inside css like
// e.g. `& ${Button} { ... }`
// Store class name of the created variable
if (isStyledLiteral || isStyledCall || isAttrsCall) {
const variableName = getStyledComponentName(path);
// TODO: reuse existing class name if possible
Expand Down

0 comments on commit dbf616a

Please sign in to comment.