Skip to content

Commit

Permalink
docs: update description for classHashPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermehto committed Oct 11, 2024
1 parent 86e567e commit 264c35c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/packages/docs/src/pages/pkg-babel-plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ Extensions that we should consider code. We use these to identify if a file shou

#### classHashPrefix

Adds a prefix to the generated hashed css rule names.
Adds a prefix to the generated hashed css rule names. The valued passed to it gets hashed in conjunction with the rest of the rule declaration.

This is useful when `@compiled` is being used in a micro frontend environment by multiple packages and you want to avoid specificity issues.

The currently accepted regex for this value is `^[a-zA-Z\-_]+[a-zA-Z\-_0-9]*$`.

- Type: `string`
- Default: `undefined`

Expand Down

0 comments on commit 264c35c

Please sign in to comment.