add types for preset function

danielroe
3
danielroe
commented a month ago

What problem does this feature solve?

Allows usage of @babel/preset-modules in modern build, for example.

What does the proposed changes look like?

Pass isModern and isClient to build.preset()

idea
1
danielroe
3
danielroe
commented a month ago

Actually, digging into the code, it seems this is already happening - so we need to update the types for the context passed to preset().

0
Informations
Feature Request โ€ข Open
#c10024 - Created a month ago