-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (57 loc) · 1.61 KB
/
index.html
File metadata and controls
60 lines (57 loc) · 1.61 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="importmap">
{
"imports": {
"@taquito/sapling": "https://esm.sh/@taquito/sapling@24.0.1"
}
}
</script>
<script>
// Ensure globals are available before any modules load
const global = globalThis;
window.global = globalThis;
// Set up minimal process object with nextTick for SES lockdown
globalThis.process = globalThis.process || {
env: {},
nextTick: function (callback, ...args) {
Promise.resolve().then(function () {
callback(...args);
});
},
version: "",
versions: {},
platform: "browser",
browser: true,
};
window.process = globalThis.process;
// Set up minimal Buffer for SES lockdown - will be replaced by full polyfill
if (!globalThis.Buffer) {
globalThis.Buffer = {
from: function () {
return new Uint8Array();
},
alloc: function () {
return new Uint8Array();
},
allocUnsafe: function () {
return new Uint8Array();
},
isBuffer: function () {
return false;
},
};
}
window.Buffer = globalThis.Buffer;
</script>
<title>Taquito Playground</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>