function commonPlugins(targets) {
    if (debug) {
      console.log(targets);
    }

    return [
      json(),
      babel({
        presets: [[
          '@babel/preset-env',
          {
            targets,
            debug
          }
        ]],
        babelHelpers: 'bundled',
        extensions: ['.js', '.ts'],
        generatorOpts: { 'importAttributesKeyword': 'with' }
      }),
      bundleSize()
    ];
  }
Command line arguments:
 `config-debug`: print debug information about the build
 `config-node`: the module is only intended for node
 `config-test`: skip bundles not required for tests