Function swc_ecma_transforms_compat::bugfixes::edge_default_param
source · [−]Expand description
Converts destructured parameters with default values to non-shorthand syntax. This fixes the only arguments-related bug in ES Modules-supporting browsers (Edge 16 & 17). Use this plugin instead of @babel/plugin-transform-parameters when targeting ES Modules.