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

Function createConfigItems

src/lib/babel-custom.js:41–47  ·  view source on GitHub ↗
(babel, type, items)

Source from the content-addressed store, hash-verified

39};
40
41const createConfigItems = (babel, type, items) => {
42 return items.map(item => {
43 let { name, value, ...options } = item;
44 value = value || [require.resolve(name), options];
45 return babel.createConfigItem(value, { type });
46 });
47};
48
49const environmentPreset = '@babel/preset-env';
50// capture both @babel/env & @babel/preset-env (https://babeljs.io/docs/en/presets#preset-shorthand)

Callers 1

configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…