Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix debug target (#2762)

authored by

Jovi De Croock and committed by
GitHub
7d9ba145 42e5b6fd

+7 -2
+5
.changeset/quiet-turkeys-brake.md
··· 1 + --- 2 + '@urql/core': patch 3 + --- 4 + 5 + Fix case where our transform-debug-target babel plugin would override the root dispatchDebug in `compose.ts` with the latest found exchange, in this case `fetchExchange`
+2 -2
scripts/babel/transform-debug-target.js
··· 21 21 if (/Exchange$/i.test(exportName)) name = exportName; 22 22 } 23 23 }, 24 - CallExpression(path) { 24 + CallExpression(path, meta) { 25 25 if ( 26 26 !path.node[visited] && 27 27 path.node.callee && 28 28 path.node.callee.name === dispatchProperty 29 29 ) { 30 30 path.node[visited] = true; 31 - if (t.isObjectExpression(path.node.arguments[0])) { 31 + if (t.isObjectExpression(path.node.arguments[0]) && !meta.filename.endsWith('compose.ts')) { 32 32 path.node.arguments[0].properties.push( 33 33 t.objectProperty( 34 34 t.stringLiteral('source'),