Skip to main content

browser_targets

Function browser_targets 

Source
pub fn browser_targets(list: &[String]) -> Targets
Expand description

esbuild-style target names as lightningcss browser targets, as Vite’s convertTargets (css.ts) maps them: chrome, edge, firefox, ie, ios (-> ios_saf), opera, safari; the lowest version per browser wins; es20xx/esnext and unknown names carry no browser and are skipped. No browser at all falls back to the baseline.