-
-
Notifications
You must be signed in to change notification settings - Fork 139
/
consts.go
118 lines (110 loc) · 2.62 KB
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
package server
const (
// esm.sh build version
VERSION = 135
// esm.sh stable build version, used for UI libraries like react, to make sure the runtime is single copy
// change this carefully!
STABLE_VERSION = 128
)
const (
nodejsMinVersion = 20
nodejsLatestLTS = "20.11.1"
nodeTypesVersion = "20.11.20"
denoStdVersion = "0.177.1"
)
// fix some npm package versions
var fixedPkgVersions = map[string]string{
"@types/react@17": "17.0.71",
"@types/react@18": "18.2.38",
"isomorphic-ws@4": "5.0.0",
"resolve@1.22": "1.22.2", // 1.22.3+ will read package.json from disk
}
// css packages
var cssPackages = map[string]string{
"@unocss/reset": "tailwind.css",
"inter-ui": "inter.css",
"normalize.css": "normalize.css",
"modern-normalize": "modern-normalize.css",
"reset-css": "reset.css",
}
// stable build for UI libraries like react, to make sure the runtime is single copy
var stableBuild = map[string]bool{
"preact": true,
"react": true,
"solid-js": true,
"svelte": true,
"vue": true,
"@vue/reactivity": true,
"@vue/runtime-core": true,
"@vue/runtime-dom": true,
"@vue/shared": true,
}
var assetExts = map[string]bool{
"wasm": true,
"css": true,
"less": true,
"sass": true,
"scss": true,
"stylus": true,
"styl": true,
"json": true,
"jsonc": true,
"csv": true,
"xml": true,
"plist": true,
"tmLanguage": true,
"tmTheme": true,
"yml": true,
"yaml": true,
"pdf": true,
"txt": true,
"glsl": true,
"frag": true,
"vert": true,
"md": true,
"mdx": true,
"markdown": true,
"html": true,
"htm": true,
"vue": true,
"svelte": true,
"svg": true,
"png": true,
"jpg": true,
"jpeg": true,
"webp": true,
"gif": true,
"ico": true,
"eot": true,
"ttf": true,
"otf": true,
"woff": true,
"woff2": true,
"m4a": true,
"mp3": true,
"m3a": true,
"ogg": true,
"oga": true,
"wav": true,
"weba": true,
"mp4": true,
"m4v": true,
"ogv": true,
"webm": true,
"zip": true,
"gz": true,
"tar": true,
"tgz": true,
}
// native node packages, for `denonext` target use `npm:package` instead of url
var nativeNodePackages = []string{
"@achingbrain/ssdp",
"default-gateway",
"fsevent",
"lightningcss",
"re2",
"zlib-sync",
}
var denoNextUnspportedNodeModules = map[string]bool{
"inspector": true,
}