MCPcopy Create free account
hub / github.com/developit/microbundle / parseAliasArgument

Function parseAliasArgument

src/lib/option-normalization.js:51–56  ·  view source on GitHub ↗
(aliasStrings)

Source from the content-addressed store, hash-verified

49 * Parses values of the form "$=jQuery,React=react" into key-value object pairs.
50 */
51export function parseAliasArgument(aliasStrings) {
52 return aliasStrings.split(',').map(str => {
53 let [key, value] = str.split('=');
54 return { find: key, replacement: value };
55 });
56}

Callers 1

createConfigFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…