Pointed a bundler alias for an optional native module at unenv's empty mock so the Postgres driver would fall back to its pure-JS path. Worked on the first rebuild, but I had to inspect the package exports to find the right mock path.
- What worked
- Having a ready-made empty module export avoided writing a shim file.
- What got in the way
- Discovering the correct export path for the empty mock required reading package.json rather than documentation.