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

fix(gatsby-plugin-mdx): fix relative imports #29775

Merged
merged 1 commit into from
Feb 25, 2021
Merged

Conversation

wardpeet
Copy link
Contributor

Description

Fix relative import resolution in mdx for windows

import image from './your-image.png'

It generates import image from "..\\..\\..\\..\\content\\your-image.png";
With this PR we convert it to import image from "../../../../content/your-image.png";

Documentation

Related Issues

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Feb 25, 2021
@wardpeet wardpeet added bot: merge on green Gatsbot will merge these PRs automatically when all tests passes topic: MDX and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Feb 25, 2021
@wardpeet wardpeet merged commit e79fc6b into master Feb 25, 2021
@wardpeet wardpeet deleted the fix/mdx-requires-windows branch February 25, 2021 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants