mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Fix potential symbol collision in bun-macro-relay
This commit is contained in:
@@ -67,9 +67,11 @@ export function graphql(node) {
|
||||
throw new Error("GraphQL operations and fragments must contain names");
|
||||
}
|
||||
|
||||
const identifiername = `${definitionName}_$gql`;
|
||||
|
||||
const importStmt = (
|
||||
<import
|
||||
default={definitionName}
|
||||
default={identifiername}
|
||||
path={`${artifactDirectory}/${definitionName}.graphql`}
|
||||
/>
|
||||
);
|
||||
@@ -77,7 +79,7 @@ export function graphql(node) {
|
||||
return (
|
||||
<>
|
||||
<inject>{importStmt}</inject>
|
||||
<id to={importStmt.namespace[definitionName]} pure />
|
||||
<id to={importStmt.namespace[identifiername]} pure />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user