ardatan / ardatan/graphql-tools

[website] switch between esm and cjs examples

Open
#4,684 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.4k
Forks
830
Avg merge
10h 59m
Merged PRs (30d)
45

Description

Many examples are CJS only, it would be neat if we had a switch component where you can show examples either in cjs or esm. https://www.graphql-tools.com/docs/documents-loading

Contributor guide

Open the contributing guide

Research direction

Start with the linked documents-loading page and inspect how its examples are authored and rendered. Determine where a CJS/ESM switch could apply across the examples; done means readers can switch between both module styles and see the corresponding code consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.