Merged in chore/replace-graphql-tag/loader (pull request #3096)

Use turbopack for dev builds.
Remove graphql-tag/loader, replaced by gql`` tag literals instead.



Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-11-07 12:33:17 +00:00
parent ae3537e008
commit e9bd159e98
291 changed files with 11734 additions and 8000 deletions

View File

@@ -1,4 +1,5 @@
import fetchRetry from "fetch-retry"
import { type DocumentNode, print } from "graphql"
import { GraphQLClient } from "graphql-request"
import stringify from "json-stable-stringify-without-jsonify"
import { cache as reactCache } from "react"
@@ -14,8 +15,6 @@ import { getPreviewHash, isPreviewByUid } from "../previewContext"
import { request as _request } from "./_request"
import { getOperationName } from "./getOperationName"
import type { DocumentNode } from "graphql"
import type { Data } from "../types/requestData"
export async function request<T>(
@@ -45,7 +44,7 @@ export async function request<T>(
return doCall()
}
const queryString = typeof query === "string" ? query : stringify(query)
const queryString = typeof query === "string" ? query : print(query)
const variablesString = stringify(variables)
const fullQuery = `${queryString}${variablesString}`