swc-project / swc-project/swc-node

controlling swc's lazy module flag

Open
#756 0 comments 1 reaction 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

Is there anyway to control swc's module.lazy flag with swc-node/register? I'm using that in my test suite and it saves time if I'm able to control it but haven't found a way to do that with this library yet.

https://swc.rs/docs/configuration/modules#lazy

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 at the swc-node/register entry point and trace how SWC module configuration is loaded. Check the linked SWC modules.lazy documentation to determine the expected option shape; done means users can control that flag when using swc-node/register, with the behavior covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.