Skip to content

Commit

Permalink
fix(loaders): conflict with codegen also using TypeScriptLoader(), ca…
Browse files Browse the repository at this point in the history
…using a double ts-node register. (#1149)
  • Loading branch information
charlypoly authored Oct 6, 2022
1 parent bdfb330 commit a12f394
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lazy-pens-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'graphql-config': patch
---

conflict with codegen also using TypeScriptLoader(), causing a double ts-node register.
2 changes: 1 addition & 1 deletion src/helpers/cosmiconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function prepareCosmiconfig(moduleName: string, { legacy }: { legacy: boolean })
return {
searchPlaces: searchPlaces.map((place) => place.replace('#', moduleName)),
loaders: {
'.ts': TypeScriptLoader(),
'.ts': TypeScriptLoader({ transpileOnly: true }),
'.js': defaultLoaders['.js'],
'.json': loadJson,
'.yaml': loadYaml,
Expand Down

0 comments on commit a12f394

Please sign in to comment.