-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·38 lines (33 loc) · 1.38 KB
/
index.html
File metadata and controls
executable file
·38 lines (33 loc) · 1.38 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="text-scale" content="scale" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
<script>
WeakMap.prototype.getOrInsert ??= function (key, defaultValue) {
if (!this.has(key)) { this.set(key, defaultValue); }
return this.get(key);
};
WeakMap.prototype.getOrInsertComputed ??= function (key, callbackFunction) {
if (!this.has(key)) { this.set(key, callbackFunction(key)); }
return this.get(key);
};
Map.prototype.getOrInsert ??= function (key, defaultValue) {
if (!this.has(key)) { this.set(key, defaultValue); }
return this.get(key);
};
Map.prototype.getOrInsertComputed ??= function (key, callbackFunction) {
if (!this.has(key)) { this.set(key, callbackFunction(key)); }
return this.get(key);
};
</script>
<!-- Note: Import map not needed - Vite handles module resolution via vite.config.js -->
</head>
<body>
<div id="app"></div>
<script type="module" src="./test/test.tsx"></script>
</body>
</html>