You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if this line could be configured via an option defaultLibImport (or maybe you can come up with a better name) where we can configure this line. Some projects may want to use Preact or in my case, I don't want any React import at all. (or at least change it to import * as React from "react" or since Im using typescript and the only reason react is imported is for types - import type * as React from "react"
graphql-codegen-apollo-next-ssr/src/visitor.ts
Line 94 in 7f93c87
It would be great if this line could be configured via an option
defaultLibImport
(or maybe you can come up with a better name) where we can configure this line. Some projects may want to usePreact
or in my case, I don't want any React import at all. (or at least change it toimport * as React from "react"
or since Im using typescript and the only reason react is imported is for types -import type * as React from "react"
See the reason for this here on the offical repo: facebook/react#18102
The text was updated successfully, but these errors were encountered: