Skip to content

React Cosmos

Enabled

This plugin is enabled when there’s a match in dependencies or devDependencies in package.json:

  • react-cosmos

Default configuration

This configuration is added automatically if the plugin is enabled:

{
"react-cosmos": {
"config": [
"cosmos.config.json"
],
"entry": [
"**/*.fixture.{js,jsx,ts,tsx,md,mdx}",
"__fixtures__/**/*.{js,jsx,ts,tsx,md,mdx}",
"**/fixture.{js,jsx,ts,tsx,md,mdx}",
"**/cosmos.decorator.{jsx,tsx}"
]
}
}

Your custom config or entry options override default values, they are not merged.

See Plugins for more details.

ISC License © 2024 Lars Kappert