UNPKG

vite-plugin-react-server

Version:
5 lines (4 loc) 205 B
import { DEFAULT_CONFIG } from './defaults.js'; export const getWorkerPath = (condition) => { return condition === 'react-server' ? DEFAULT_CONFIG.HTML_WORKER_PATH : DEFAULT_CONFIG.RSC_WORKER_PATH; };