StyledComponentsOptions
This content is not available in your language yet.
Defined in: core/index.ts:752
styled-components transform options (babel-plugin-styled-components-compatible).
Properties
섹션 제목: “Properties”cssProp?
섹션 제목: “cssProp?”
optionalcssProp?:boolean
Defined in: core/index.ts:787
Extract the <div css={...}> JSX prop into a module-level styled component
(default: false). Opt-in, unlike babel-plugin-styled-components which
defaults to true. Supports intrinsic / custom (including
jsx_member_expression) / css\`template / object form /${expr}dynamic prop forwarding. On auto-inject, astyledbinding collision is automatically mangled to_styled/_styled2`.
displayName?
섹션 제목: “displayName?”
optionaldisplayName?:boolean
Defined in: core/index.ts:754
Auto-assign a displayName for devtools display (default: NODE_ENV !== “production”).
fileName?
섹션 제목: “fileName?”
optionalfileName?:boolean
Defined in: core/index.ts:758
Include the file name in componentId (default: true).
meaninglessFileNames?
섹션 제목: “meaninglessFileNames?”
optionalmeaninglessFileNames?:string[]
Defined in: core/index.ts:772
List that makes the displayName prefix fall back to the parent dir when
the basename is meaningless (default: ["index"]). Equivalent to the
option of the same name in babel-plugin-styled-components.
meta?
섹션 제목: “meta?”
optionalmeta?:boolean
Defined in: core/index.ts:789
Emit the [meta] marker (default: false).
minify?
섹션 제목: “minify?”
optionalminify?:boolean
Defined in: core/index.ts:760
Minify CSS whitespace (default: true).
namespace?
섹션 제목: “namespace?”
optionalnamespace?:string
Defined in: core/index.ts:766
Namespace prefix for displayName / componentId — isolates multiple styled instances.
pure?
섹션 제목: “pure?”
optionalpure?:boolean
Defined in: core/index.ts:764
Tell the minifier that styled.X is side-effect-free (default: false).
ssr?
섹션 제목: “ssr?”
optionalssr?:boolean
Defined in: core/index.ts:756
Deterministic componentId hash for stable SSR hydration (default: true).
topLevelImportPaths?
섹션 제목: “topLevelImportPaths?”
optionaltopLevelImportPaths?:string[]
Defined in: core/index.ts:778
List of import sources to recognize as vendored forks (e.g. @my-org/styled,
@my-org/*, @{my-org,co}/*). picomatch-compatible glob — *, ?,
[abc]/[a-z]/[!abc], {a,b} (nesting allowed).
transpileTemplateLiterals?
섹션 제목: “transpileTemplateLiterals?”
optionaltranspileTemplateLiterals?:boolean
Defined in: core/index.ts:762
Recognize template literals downleveled to modern JS (default: true).