vite icon indicating copy to clipboard operation
vite copied to clipboard

feat: support `RegExp | RegExp[]` for `external`

Open elecmonkey opened this issue 2 months ago • 1 comments

Description

Changes

  • Extended resolve.external type from string[] | true to string | RegExp | (string | RegExp)[] | true.
  • Try to ensure that existing inputs are not affected in any way

Documentation

  • Updated docs/config/ssr-options.md

Issues

Fixes #20843

elecmonkey avatar Oct 13 '25 15:10 elecmonkey

Can you add test cases?

Done.

elecmonkey avatar Oct 14 '25 05:10 elecmonkey