rslib
rslib copied to clipboard
[Feature]: stabilize config design
What problem does this feature solve?
Stabilize config design schema for 1.0, ensure no breaking change in foreseeable future.
What does the proposed API look like?
x
TBD: Remove required limitation of lib field which means we can generate pure esm package with zero configuration.
TBD: Simplify source.entry configuration in bundleless mode.
current
export default defineConfig({
source: {
entry: {
index: ['src', '!src/**/*.test.ts'],
},
},
});
expect
export default defineConfig({
source: {
entry: ["src", "!src/**/*.test.ts"],
}
});
TBD: support web-worker target.
https://github.com/web-infra-dev/rslib/issues/929
Also, neutral target?