swc-project / swc-project/swc-node

Is there a way to use this tool like TSC?

Open
#540 4 comments 8 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

Hey,

I'm trying to figure out how to use @swc-node/core, but not sure how I would use it. This tool provides 2 functions that receive an input string only.

Is there a way I can define an entry file, and from there, it will automatically transpile everything that this file needs (recursively)?

Maybe write some custom code for it?

Thanks

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

Start with the @swc-node/core API that exposes the two input-string functions and trace how an entry file could be handled recursively. Define done as either documenting an existing TSC-like workflow or specifying and testing the requested entry-file behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.