UNPKG

react-cosmos

Version:

Sandbox for developing and testing UI components in isolation

20 lines (19 loc) 777 B
import { fixtureWatcherPlugin } from './fixtureWatcherPlugin.js'; import { fixturesJsonPlugin } from './fixturesJsonPlugin.js'; import { httpProxyPlugin } from './httpProxyPlugin.js'; import { openFilePlugin } from './openFilePlugin.js'; import { pluginEndpointPlugin } from './pluginEndpointPlugin.js'; import { portRetryPlugin } from './portRetryPlugin.js'; import { remoteRendererUrlPlugin } from './remoteRendererUrlPlugin.js'; export const coreServerPlugins = [ portRetryPlugin, fixturesJsonPlugin, httpProxyPlugin, openFilePlugin, pluginEndpointPlugin, remoteRendererUrlPlugin, ]; // Omit starting chokidar in unit tests for performance reasons if (process.env.VITEST_WORKER_ID === undefined) { coreServerPlugins.push(fixtureWatcherPlugin); }