Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it work with Node ESModules #2487

Closed
wants to merge 1 commit into from
Closed

Conversation

kamilkisiela
Copy link

A missing piece to run graphql with Node's experimental ecmascript modules.

@Urigo
Copy link
Contributor

Urigo commented Apr 2, 2020

@IvanGoncharov Is there something we can do to help progress this one?

@IvanGoncharov IvanGoncharov added this to the v15.1.0 milestone Apr 2, 2020
@IvanGoncharov
Copy link
Member

@kamilkisiela We need to support imports like graphql/language (officially supported) or graphql/language/parser (non-supported but used by a lot in the wild).
Also can you please post a link to a document that describes exports?

Comment on lines +11 to +14
"exports": {
"require": "index.js",
"default": "index.mjs"
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change since it does not allow:

require("graphql/package.json");
require("graphql/language");
// …

@IvanGoncharov IvanGoncharov removed this from the v15.1.0 milestone Jun 20, 2020
Base automatically changed from master to main January 27, 2021 11:10
@IvanGoncharov
Copy link
Member

Closing since, review comments were never addressed.
We can't lose imports of subpaths.

@yaacovCR
Copy link
Contributor

See #3217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants