vite
vite copied to clipboard
feat: support `RegExp | RegExp[]` for `external`
Description
Changes
- Extended resolve.external type from
string[] | truetostring | 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
Can you add test cases?
Done.