Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Zero-Configuration Rslib #62

Open
colinaaa opened this issue Aug 6, 2024 · 1 comment · May be fixed by #88
Open

[Feature]: Zero-Configuration Rslib #62

colinaaa opened this issue Aug 6, 2024 · 1 comment · May be fixed by #88
Assignees

Comments

@colinaaa
Copy link

colinaaa commented Aug 6, 2024

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.

@fi3ework
Copy link
Member

fi3ework commented Aug 6, 2024

Yeah! Using package.json as the single source of truth is in plan. Rslib also should check the correctness with it when providing a rslib.config file. We may support autoExternal at first (tracked in #46).

@shulaoda shulaoda linked a pull request Aug 14, 2024 that will close this issue
2 tasks
@fi3ework fi3ework self-assigned this Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants