Package Exports #863
Replies: 10 comments 24 replies
|
I voted stuck because ESM support in Jest is still experimental. I have not been able to get Jest working with |
|
This may help users out https://devblogs.microsoft.com/typescript/announcing-typescript-5-5-rc/#respecting-file-extensions-and-packagejson-in-other-module-modes |
|
I voted stuck because ESM support in react-native is experimental (via |
|
We are using NestJS with graphql-request in our projects as well and so far I couldn't find any configuration allowing us to migrate to v7.1.0 with minimal changes. Ultimately, the configuration that displays the least errors is but open compilation, we are getting this error Now we don't have any errors in the source code, but the dist directory |
|
I am happy to see this change from TypeScript. I believe this will widen the path of possible configurations that users can use to work with modern JS packages in TS. One thing that I am not sure about at the moment is if this implies that TS will also kick in its |
|
Working on an Expo application. Not completely stuck, but quite affected by this decision:
|
|
I now have explicit documentation about this part of Graffle: https://graffle.js.org/guides/getting-started#💀-verify-project-configuration. Any improvements to that content welcome. Thanks to discussions here I already made a cross link for React Native users. I continue to be loath to support 1) CJS and 2) |
|
Hey, I have a great update. Given this, I am now going to consider this thread closed. It's a great compromise I think. |
|
Another community shift in this direction: https://antfu.me/posts/move-on-to-esm-only |
|
Hopefully this makes some of you happy, this was a small PR so I accepted it! https://github.com/graffle-js/graffle/releases/tag/v7.3.0 I am now going to finally unpin this discussion. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Newer versions of GraphQL Request require TypeScript to be configured such that it will read
package.exports. This decision is to help modernize the community, like with some popular library authors over the past few years have switched over to ESM-only packages. It also reduces my burden by preventing unofficial deep imports.This poll does not mean a democratic decision/change is happening, but I am curious about the results.
If you vote for "...stuck..." please leave a comment about why.
Thanks!
Related:
48 votes ·
All reactions