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

chore(docs): Add "ESM and Gatsby" #37934

Merged
merged 6 commits into from
Apr 13, 2023
Merged

chore(docs): Add "ESM and Gatsby" #37934

merged 6 commits into from
Apr 13, 2023

Conversation

LekoArts
Copy link
Contributor

@LekoArts LekoArts commented Apr 12, 2023

Description

This adds a new "ES Modules (ESM) and Gatsby" document at /docs/how-to/custom-configuration/es-modules/. ESM support was released in 5.3 (https://www.gatsbyjs.com/docs/reference/release-notes/v5.3/#es-modules-esm-in-gatsby-files) but we never added the docs for it.

This PR also does:

  • Update the README of gatsby-plugin-mdx to use ESM
  • Update using-mdx example to use ESM

Documentation

Updating gatsby-plugin-mdx README makes sense as otherwise the usage is pretty limited.

Tests

I ran using-mdx locally. The README of gatsby-plugin-mdx is based on that.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 12, 2023
@LekoArts LekoArts added type: documentation An issue or pull request for improving or updating Gatsby's documentation and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Apr 12, 2023
@LekoArts LekoArts merged commit e258553 into master Apr 13, 2023
@LekoArts LekoArts deleted the docs/esm-in-gatsby branch April 13, 2023 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation An issue or pull request for improving or updating Gatsby's documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants