build.js
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
  });
}
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
  });
}
function createUmd ( name , globals ) { // core module is ngd3 the rest are ngd3.feature const MODULE_NAMES = { ngd3 : 'ngd3' , } ; const ENTRIES = { ngd3 : ` ${ process . cwd ( ) } ` , } ; const moduleName = MODULE_NAMES [ name ] ; const entry = ENTRIES [ name ] ; return generateBundle ( entry , { dest : ` ${ process . cwd ( ) } ${ name } ` , globals , moduleName } ) ; }
Create a UMD bundle given a module name.
@param {string} name
@param {Object} globals
Create a UMD bundle given a module name .