code: function createUmd(name, globals) {
    // core module is ngd3 the rest are ngd3.feature
    const MODULE_NAMES = {
      ngd3: 'ngd3',
    };
    const ENTRIES = {
      ngd3: `${process.cwd()}/dist/index.js`,
    };
    const moduleName = MODULE_NAMES[name];
    const entry = ENTRIES[name];
  
    return generateBundle(entry, {
      dest: `${process.cwd()}/dist/bundles/${name}.umd.js`,
      globals,
      moduleName
    });
  }
docs: Create a UMD bundle given a module name.
  @param {string} name
  @param {Object} globals