rspack icon indicating copy to clipboard operation
rspack copied to clipboard

refactor: add JSDoc to improve Rspack configuration.entry|context|mode types

Open GiveMe-A-Name opened this issue 1 year ago • 1 comments

…context] types.

Zod types system is not easy to understand by user.

We tend use raw ts provider intellisense and jsDoc for user in ide.

  • Add type & JSDoc for config.entry
  • Add type & JSDoc for config.context
  • Add type & JSDoc for config.dependencies
  • Add type & JSDoc for config.mode

See https://github.com/web-infra-dev/rspack/issues/4241 more detail.

Summary

Checklist

  • [ ] Tests updated (or not required).
  • [ ] Documentation updated (or not required).

GiveMe-A-Name avatar Sep 29 '24 08:09 GiveMe-A-Name