Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Use absolute import path when importing apollo-codegen legacyIR #2830

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/strange-dingos-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'graphql-tool-utilities': patch
---

Fix import of apollo-codegen-core when using the mjs version of the package
3 changes: 2 additions & 1 deletion packages/graphql-tool-utilities/src/ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import type {
LegacyInlineFragment,
LegacyOperation,
} from 'apollo-codegen-core/lib/compiler/legacyIR';
import {compileToLegacyIR as compileToIR} from 'apollo-codegen-core/lib/compiler/legacyIR';
// Explicit js extension as it is required for the esm build
import {compileToLegacyIR as compileToIR} from 'apollo-codegen-core/lib/compiler/legacyIR.js';

export enum OperationType {
Query = 'query',
Expand Down
Loading