knip icon indicating copy to clipboard operation
knip copied to clipboard

Collector issue for known issues w/ jiti

Open webpro opened this issue 1 year ago • 0 comments

There's a number of issues around using jiti. First and foremost: Jiti is awesome, Knip wouldn't nearly be as good without it!

This is a collector issue for housekeeping, and I expect those to be resolved at once. issues are documented at https://knip.dev/reference/known-issues

  • https://github.com/webpro/knip/issues/346
  • https://github.com/webpro/knip/issues/350
  • https://github.com/webpro/knip/issues/355
  • https://github.com/webpro/knip/issues/515

I think most or all of them can be potentially worked around by using bun:

bunx --bun knip

This uses the Bun runtime. Bun does not transpile, just strips types, has flexible module resolution, and also uses TS path aliases (tsconfig.json#compilerOptions.paths) in dynamically loaded scripts/modules.

jiti v2 might fix the issues for the Node.js runtime.

webpro avatar Mar 21 '24 13:03 webpro