rslib icon indicating copy to clipboard operation
rslib copied to clipboard

[Feature]: stabilize config design

Open fi3ework opened this issue 8 months ago • 3 comments

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

fi3ework avatar May 07 '25 08:05 fi3ework

TBD: Remove required limitation of lib field which means we can generate pure esm package with zero configuration.

Timeless0911 avatar May 13 '25 08:05 Timeless0911

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"],
  }
});

Timeless0911 avatar May 13 '25 08:05 Timeless0911

TBD: support web-worker target.

https://github.com/web-infra-dev/rslib/issues/929

Also, neutral target?

Timeless0911 avatar May 13 '25 08:05 Timeless0911