Skip to content

[Feature] use package.json imports instead of tsconfig.json paths #218

Description

@valerii15298

Which project does this relate to?

Create Tanstack App

Describe the feature

package.json imports field is recognized by bundlers,nodejs,bun,deno and typescript. It does no require any extra configuration and works in runtime. I suggest using this feature for new projects instead of @ aliases with tsconfig paths.

Additional context

https://bun.com/docs/runtime/module-resolution#importing-packages

Image

https://nodejs.org/api/packages.html#subpath-imports
https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-imports-and-self-name-imports

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions