swc-project / swc-project/swc-node

[@swc-node/register] subpath imports don't work since v1.10.1

Open
#895 0 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2k
Forks
95
Avg merge
14d 11h
Merged PRs (30d)
1

Description

Importing a subpath import that redirects to a module stopped working with the introduction of oxc-resolver (#798).

I have made an MRE at https://github.com/gordonmleigh/mre-swc-node-register-subpath-imports.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the linked MRE for @swc-node/register and subpath imports first, then inspect the resolver integration introduced with oxc-resolver in v1.10.1 and the context of issue #798. Done means the MRE's subpath import redirects to its module successfully again.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.