Commit b0a58b54a182

Vincent Demeester <vincent@sbr.pm>
2026-03-24 13:25:06
revert: remove JITI_TRY_NATIVE, breaks extensions
Native Node.js imports can't resolve pi's aliased packages (@mariozechner/*, @sinclair/typebox) or handle TypeScript parameter properties. The unref() fixes are kept.
1 parent df7d605
Changed files (2)
home
common
shell
pkgs
my
scripts
bin
home/common/shell/zsh.nix
@@ -61,9 +61,6 @@
     '';
     sessionVariables = {
       RPROMPT = "";
-      # Use Node.js native imports in jiti, bypassing babel transform.
-      # Dramatically reduces pi extension loading time (~10x faster startup).
-      JITI_TRY_NATIVE = "true";
     };
     # No plugins here — we use home.file to place them without auto-sourcing.
     # Sourcing is handled by dots/config/zsh/tools/*.zsh
pkgs/my/scripts/bin/pir
@@ -3,10 +3,6 @@
 # Usage: pir [args...]
 # Uses google-vertex-claude provider with claude-sonnet-4-6
 
-# Use Node.js native imports where possible, bypassing jiti's babel transform.
-# This dramatically reduces extension loading time (~10x faster startup).
-export JITI_TRY_NATIVE=true
-
 exec pass-run -q \
   -e GOOGLE_CLOUD_PROJECT=redhat/google/osp/project \
   -e GOOGLE_CLOUD_LOCATION=redhat/google/osp/location \