npm tsc-alias 1.9.10
v1.9.10 (2026-10-31)

4 hours ago

🚀 Release v1.9.10

🌟 New Features & Enhancements

  • Configurable Bare Package Subpath Resolution (resolvePackageSubpaths) :
    You can now explicitly control whether --resolve-full-paths appends extensions to third-party package subpaths (e.g., next/font/google).

    When using bundlers or packages without an exports field (like Next.js), you can prevent unwanted file extensions from breaking virtual/magic imports.


⚙️ How to use

Via tsconfig.json

{
  "compilerOptions": {
    "moduleResolution": "node"
  },
  "tsc-alias": {
    "resolveFullPaths": true,
    "resolvePackageSubpaths": false
  }
}

Via CLI

# Keep relative and alias extensions, but preserve bare package subpaths
tsc-alias --resolve-full-paths --no-resolve-package-subpaths

Via API

await replaceTscAliasPaths({
  resolveFullPaths: true,
  resolvePackageSubpaths: false
});

🐛 Bug Fixes & Smarter Defaults

  • Default to false for moduleResolution: "bundler": If your tsconfig.json specifies "moduleResolution": "bundler" (or "Bundler"), bare package subpaths are automatically preserved as written by default.
  • Full opt-out for moduleResolution: "node": Libraries built for bundlers with "moduleResolution": "node" can now cleanly opt out without staying locked on v1.9.7.

Don't miss a new tsc-alias release

NewReleases is sending notifications on new releases.