code: function includePolyfills(preset) {
    let {
      browsers,
      node,
      platforms,
    } = getSettings()
  
    // The preset env will check the “browsers” and “node” values to enable the
    // necessary transformations.
    let presetEnvOptions = {
      useBuiltIns: 'usage',
      targets: {},
    }
  
    if (platforms.includes('browser'))
      presetEnvOptions.targets.browsers = browsers
  
    if (platforms.includes('node'))
      presetEnvOptions.targets.node = node
  
    preset.presets.push([
      getModulePath('@babel/preset-env'),
      presetEnvOptions,
    ])
  }
docs: Add “@babel/preset-env” to the final preset configured to include polyfills
  in the final bundle.