Debian Codegraph @

packages/babel-helper-compilation-targets/src/targets.ts

raw symbols SCIP
1 export const unreleasedLabels = {
2 safari: "tp",
3 } as const;
4
5 import type { Target } from "./types";
6
7 // Map from browserslist|@mdn/browser-compat-data browser names to @kangax/compat-table browser names
8 export const browserNameMap: Record<string, Target> = {
9 and_chr: "chrome",
10 and_ff: "firefox",
11 android: "android",
12 chrome: "chrome",
13 edge: "edge",
14 firefox: "firefox",
15 ie: "ie",
16 ie_mob: "ie",
17 ios_saf: "ios",
18 node: "node",
19 deno: "deno",
20 op_mob: "opera",
21 opera: "opera",
22 safari: "safari",
23 samsung: "samsung",
24 } as const;
25
26 export type BrowserslistBrowserName = keyof typeof browserNameMap;