-
-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
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
frommain
,module
,umd
andexports
- Read
externals
fromdependencies
,devDependencies
andpeerDependencies
- Read
alias
frompackage.json#imports
Or, maybe create a new tool Rspkg that uses Rslib with zero-configuration.
chenjiahan, jkzing, luhc228 and SoonIter
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
fi3ework commentedon 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 arslib.config
file. We may supportautoExternal
at first (tracked in #46).