( options: CSSOptions | undefined, )
| 212 | } |
| 213 | |
| 214 | export function resolveCSSOptions( |
| 215 | options: CSSOptions | undefined, |
| 216 | ): ResolvedCSSOptions { |
| 217 | const resolved = mergeWithDefaults(_cssConfigDefaults, options ?? {}) |
| 218 | if (resolved.transformer === 'lightningcss') { |
| 219 | resolved.lightningcss ??= {} |
| 220 | resolved.lightningcss.targets ??= convertTargets( |
| 221 | ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, |
| 222 | ) |
| 223 | } |
| 224 | return resolved |
| 225 | } |
| 226 | |
| 227 | const cssModuleRE = new RegExp(`\\.module${CSS_LANGS_RE.source}`) |
| 228 | const directRequestRE = /[?&]direct\b/ |
no test coverage detected