diff options
author | Joris | 2022-09-04 16:21:18 +0200 |
---|---|---|
committer | Joris | 2022-09-04 16:21:18 +0200 |
commit | 0b32b9110dd406ca052cfd7348f0ddd7e35b048e (patch) | |
tree | 11e0da7d61be8d7602c53b95d1738a87b2179dd2 /public | |
parent | a5f8943c7eecd2048007b53610d7bc1edaa5ac05 (diff) |
Use esbuild to produce JS
Diffstat (limited to 'public')
-rw-r--r-- | public/index.html | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/public/index.html b/public/index.html index 27b8470..8fd4ddc 100644 --- a/public/index.html +++ b/public/index.html @@ -6,22 +6,6 @@ <link rel="stylesheet" href="/main.css"> <link rel="icon" href="/icon.png"> -<body> - <script> - // https://github.com/al6x/stupid-simple-typescript-web-starter - window.define = function(name, required, moduleFn) { - var require = function() { throw new Error("AMD require not supported!")} - var exports = window.define.modules[name] = {} - var resolved = [require, exports] - for (var i = 2; i < required.length; i++) { - var m = window.define.modules[required[i]] - if (!m) throw new Error("AMD module `" + required[i] + "` not found!") - resolved.push(m) - } - moduleFn.apply(null, resolved) - } - window.define.modules = {} - </script> +<body></body> - <script src="main.js"></script> -</body> +<script src="main.js"></script> |