web-infra-dev / web-infra-dev/rslib

[Feature]: Zero-Configuration Rslib

Open
#62 2 comments 4 reactions 1 assignee View on GitHub

@fi3ework is already working on this.

Since Oct 15, 2024.

💡 feature
Dominant language
TypeScript
Stars
1k
Forks
67
Avg merge
6h 9m
Merged PRs (30d)
57

Description

What problem does this feature solve?

Tools like pkgroll and microbundle offer zero-configuration support. It would be great if Rslib also supports using with zero-configuration.

What does the proposed API look like?

Rslib can be run without rslib.config.ts. Most of the configuration can be read from package.json.

  • Read entry from main, module, umd and exports
  • Read externals from dependencies, devDependencies and peerDependencies
  • Read alias from package.json#imports

Or, maybe create a new tool Rspkg that uses Rslib with zero-configuration.

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.