@stylexjs/postcss-plugin
Configuration options
babelConfig
babelConfig: object; // Default: {}Options for Babel configuration. By default, the plugin reads the
babel.config.js in your project. For custom configurations, set
babelrc: false and specify desired options. Refer to
Babel Config Options for available options.
cwd
cwd: string; // Default: process.cwd()Working directory for the plugin; defaults to process.cwd().
exclude
exclude: string[] // Default: []Array of paths or glob patterns to exclude from compilation. Paths in exclude
take precedence over include.
importSources
importSources: Array<string | { from: string, as: string }>; // Default: ['@stylexjs/stylex', 'stylex']Possible strings where you can import stylex from. Files that do not match the import sources may be skipped from being processed to speed up compilation.
include
include: string[] // RequiredArray of paths or glob patterns to compile.
useCSSLayers
useCSSLayers: boolean; // Default: falseEnabling this option switches Stylex from using :not(#\#) to using @layers
for handling CSS specificity.