UNPKG

d3-view

Version:

View-model d3 plugin for building interactive data-driven web interfaces

18 lines (15 loc) • 587 B
export const defaultConfigFile = "require.config.js"; export const defaultOutFile = "d3-require.js"; export function options(config, command) { if (!config.dependencies) config.dependencies = {}; config.available = new Set(); config.silent = command.silent; config.out = command.out || config.out || defaultOutFile; config.node_modules = command.node_modules; config.prepend = mergeList(config.prepend, command.prepend); config.append = mergeList(config.append, command.append); } function mergeList(val, sval) { if (sval) return sval.split(","); return val || []; }