mizdra/graphql-codegen-typescript-fabbrica

Do not use `pkg.exports` field

mizdra opened this issue · 1 comments

mizdra commented

pkg.exports field does not work with tsconfig.moduleResolution === 'node'. Therefore, this field should not be used.

mizdra commented

tsc can handle pkg.exports if moduleResolution === 'bundler' or moduleResolution === 'Node16'. And these days it is best practice to use either of these values instead of 'node'.

Given that, we may not need support for 'node'.