Skip to content

[Feature]: Zero-Configuration Rslib #62

@colinaaa

Description

@colinaaa

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.

Activity

fi3ework

fi3ework commented on Aug 6, 2024

@fi3ework
Member

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).

linked a pull request that will close this issue on Aug 14, 2024
self-assigned this
on Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @fi3ework@colinaaa

    Issue actions

      [Feature]: Zero-Configuration Rslib · Issue #62 · web-infra-dev/rslib