Skip to content

Publish ESM (.mjs) entry point to npm #208

Closed
@motiz88

Description

@motiz88

While working on optimising the bundling of https://github.com/graphql/swapi-graphql — for reasons1 — I discovered that it was importing things from graphql-relay-js, but that the latter, unlike graphql-js, only had a CommonJS entry point published to npm.

It might be desirable to add an ES module build target to this package, modeled on what graphql-js is already doing.


1 See https://twitter.com/motiz88/status/985110696668131328 - I'm investigating the claim that schema execution on the front-end is impractical due to graphql-js's footprint in terms of bundle size. swapi-graphql simply happens to be a good, accessible testbed for just that (thanks @IvanGoncharov for the tip! 🙏)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions