Closed windsonR closed 2 months ago
Run & review this pull request in StackBlitz Codeflow.
Thanks but this is by design. To allow users to have full control over what to include/exclude. The new implementation takes away the capability. Instead, we could expose some constant for defaultInlcudes
and defaultExcludes
Description
When user set their
exclude
option to an Array like[/aaa/,/bbb/]
User's
exclude
DO NOT containsnode_modules/.vite
ornode_modules
which is specified in defaultexclude
array.Then when Browser request pre-bundled file, plugin WILL transform them and generate a new sourcemap for them
The new sourcemap will override the original sourcemap generated by
vite
Linked Issues
Additional context