Skip to content

Commit

Permalink
build: use type import for types only library
Browse files Browse the repository at this point in the history
This was causing build failure on the latest version of Vite
  • Loading branch information
tien committed Dec 8, 2023
1 parent 661c3db commit db66518
Show file tree
Hide file tree
Showing 3 changed files with 964 additions and 1,952 deletions.
1 change: 1 addition & 0 deletions packages/chaindata-provider-extension/src/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const config: CodegenConfig = {
// defaults to `any` - let's go with `unknown` instead :)
JSON: "unknown",
},
useTypeImports: true,
},
hooks: { afterAllFileWrite: ["prettier --write"] },
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"
import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core"

/* eslint-disable */
import * as types from "./graphql"
Expand Down
Loading

0 comments on commit db66518

Please sign in to comment.