Skip to content

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.

3 participants