MCPcopy Create free account
hub / github.com/adobe/react-spectrum / processExports

Function processExports

lib/jestResolver.js:114–124  ·  view source on GitHub ↗
(exports)

Source from the content-addressed store, hash-verified

112}
113
114function processExports(exports) {
115 for (let key in exports) {
116 if (typeof exports[key] === 'object') {
117 processExports(exports[key]);
118 } else if (key === 'import' || key === 'types' || key === 'require') {
119 delete exports[key];
120 } else if (key === 'source') {
121 exports.default = exports.source;
122 }
123 }
124}

Callers 1

jestResolver.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected