Skip to content

Commit d80cd6b

Browse files
robmcleishagclaudeamir-zahedi
authored
feat: Relay fix (#417)
* fix(gdu): remove temp exclusion and add sourceType unambiguous to babel config Remove the temporary @autoguru/utilities exclusion that was no longer needed and add sourceType 'unambiguous' to babel-loader options to handle both ES modules and CommonJS files correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Fixed winidows path issue in relay.ts Updated relay.ts to write correct path on windows pc. [AG-18025] * fix: update changeset description and browserslist snapshot Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Amir Zahedi <amir.zahedi@gmail.com>
1 parent 4528598 commit d80cd6b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/tangy-rivers-care.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gdu": patch
3+
---
4+
5+
Normalise backslashes in relay plugin artifact directory path to fix Windows compatibility

packages/browserslist-config/__snapshots__/test.spec.js.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Array [
1919
"edge 136",
2020
"edge 135",
2121
"edge 134",
22-
"edge 133",
2322
"firefox 142",
2423
"firefox 141",
2524
"firefox 140",

packages/gdu/config/vite/plugins/relay.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { VitePlugin } from '../types';
22

3-
export function relayPlugin(artifactDirectory: string): VitePlugin {
3+
export function relayPlugin(rawArtifactDirectory: string): VitePlugin {
4+
const artifactDirectory = rawArtifactDirectory.replaceAll('\\', '/');
45
const graphqlTagRegex = /graphql\s*`\s*([\s\S]*?)`/g;
56
const operationNameRegex =
67
/(?:query|mutation|subscription|fragment)\s+(\w+)/;

0 commit comments

Comments
 (0)