Hugo Future Imperfect Slim

Tracey Jaquith · Tracey Pooh

Technophile · Optimist · Cyclist · Archivist · Design · Video · TV · Nomad · Docker

js/vendor

Local copies of the three modules ../zip-on-the-fly.js imports, so it can run with no internet (a plane, a hotel, a dead CDN).

zip-on-the-fly.js imports the CDN versions by default. To switch, comment out the ONLINE import block at the top of that file and uncomment the OFFLINE one below it.

Refreshing these

~/d/esbuild_es5/esbuild.js -f esm -t es2020 \
  'https://esm.ext.archive.org/lit?target=es2022' \
  'https://esm.ext.archive.org/client-zip@2/index.js?target=es2022'

mv build/lit_target=es2022.min.js  js/vendor/lit.min.js
mv build/index.min.js              js/vendor/client-zip.min.js
cp ~/av/www/js/util/log.js         js/vendor/log.js

Two flags matter, and both bite silently if you leave them off:

  • -t es2020 — client-zip uses BigInt literals (0n), which the wrapper’s default es6 target rejects outright with Big integer literals are not available in the configured target environment.
  • ?target=es2022 — esbuild runs under Deno, so esm.sh content-negotiates on the User-Agent and hands back its denonext builds. Those happen to work in a browser, but pinning the target means the bundle holds the same code a browser would fetch.

sourceMappingURL comments are stripped, since the .map files aren’t shipped and devtools would 404 looking for them.

Recent Posts

16 Categories

Tags

#spottheshuttle 1940s 1st person 3d accident aids lifecycle airplane animals appeltart apple pie apple watch architecture arkit art ascii art asia augmented reality baking bali bay area beach best of biking birthday cafe racer camaro camera video camping candy cape cod cars castle cat pee cat psychology cats cloud coding college colorspaces computer vision cornell crictl css dark mode death valley decaf deinterlace desert design diy docker documentary driving ducting ebgb elbow break emacs endeavour engagement family ffmpeg food france games geek gitlab golden gate bridge google cardboard grand canyon gravel bike green magic man h.264 hack hawaii health highway 1 home https hugo hyperlapse internet archive ios iphone javascript jeep k3s kauai kubernetes landscapes linux lisp luke battling darth mac macosx markdown mashup metal mill valley montclair motion-jpeg motorcycle mountain bike mplayer mt tamalpais nasa new bay bridge news ninja oakland olecranon partioning phoenix php php-htm-mode politics protest rancher recording remaster remix remodel sedona shuttle small town spain sql sqlite star wars surgery swift tahoe technical thirsty thursday time machine time-lapse timing belt adjustment top end rebuild tracey traefik training ride travel vacation valve job video virtual reality vlog vscode wedding weekend mechanic work x264 xcode yuvj420p zx6

About

tracey is a nonstop dance party. so you dont have to. dont ask me about containers. thanks for dropping by today. you look nice.