egoist / egoist/tsup

Emit warning when`cjsInterop` is enabled without `splitting`

Open
#1,033 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
274
PR merge metrics
No merged PRs in 30d

Description

Either emit a warning when`cjsInterop` is enabled without `splitting`. Another option might be to automatically enable `splitting` when `cjsInterop` is enabled. But otherwise `cjsInterop` has no effect and it is unclear why.

Contributor guide

Open the contributing guide

Research direction

The issue does not name a file or test. Start by tracing where the cjsInterop and splitting options are handled, then check how existing option warnings are tested. Done means users are warned when cjsInterop is enabled without splitting, or the project consistently enables splitting automatically, with the chosen behavior documented by tests.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.