Skip to content

Commit

Permalink
fix: Export $tada to fix isolatedModules projects (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Mar 2, 2024
1 parent b44f496 commit f0b666b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-socks-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gql.tada': patch
---

Fix `$tada` not being exported, which can cause projects with `isolatedModules: true` set from building.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ export type {
VariablesOf,
FragmentOf,
} from './api';

// NOTE: This must be exported for `isolatedModules: true`
export type { $tada } from './namespace';
1 change: 1 addition & 0 deletions src/namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { DocumentNodeLike } from './parser';
import type { DocumentDecoration } from './utils';

/** Private namespace holding our symbols for markers.
* @internal
*
* @remarks
* Markers are used to indicate, for example, which fragments a given GraphQL document
Expand Down

0 comments on commit f0b666b

Please sign in to comment.