leonsilicon / website

personal website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Personal Website

A minimalist personal website (most of my engineering efforts are spent building Tunnel :)

Technologies

Why is Nuxt.js patched?

I couldn't get vanilla Nuxt.js to work with my TypeScript monorepo setup (the generated dev/index.mjs bundle didn't transform the relative import path in packages/database/$.ts, causing nitro to fail to resolve the imports from @-/database).

Instead of trying to fix the bundling logic, I wanted nitro to support importing @-/database directly from a JavaScript file, which requires registering a Node.js ESM loader like tsx. However, the nitro server uses node:worker_threads to execute the bundled file, which currently doesn't support custom loaders.

Until Node.js releases support for loaders in a worker thread, I'm using a patch that makes nitro use child_process#fork instead (this patch is auto-generated via this script).

I also probably could've just used Next.js but I wanted to use Vue and not React /shrug

About

personal website


Languages

Language:TypeScript 78.0%Language:Vue 11.4%Language:JavaScript 10.4%Language:CSS 0.2%