Skip to content

Conversation

@wooorm
Copy link
Member

@wooorm wooorm commented Dec 4, 2021

Closes GH-1821.
Related-to: wooorm/xdm@db74ddc

@vercel
Copy link

vercel bot commented Dec 4, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mdx/mdx/3oQWbHXM47W2rPQu5Xb5h1NzYTga
✅ Preview: https://mdx-git-esbuild-resolve-mdx.vercel.app

@codecov-commenter

This comment has been minimized.

@vercel vercel bot temporarily deployed to Preview December 4, 2021 10:28 Inactive
*/

import assert from 'node:assert'
import {promises as fs} from 'fs'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense for fs to also have a node: prefix?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I’ll remove the node: prefixes.
There was some reason why I didn’t apply them here (they are in xdm). Perhaps due to CRA or Next or so?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, it’s a bit inconsistent now anyway. I’ve made it more consistent. esbuild and the node loader probably run in a Node version that support it. I’ve “downgraded” one instance of MDX core though.

@vercel vercel bot temporarily deployed to Preview December 30, 2021 17:30 Inactive
@wooorm wooorm added 🐛 type/bug This is a problem 👶 semver/patch This is a backwards-compatible fix 🗄 area/interface This affects the public interface labels Dec 30, 2021
@wooorm wooorm merged commit 5c61f57 into main Dec 30, 2021
@wooorm wooorm deleted the esbuild-resolve branch December 30, 2021 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🗄 area/interface This affects the public interface 👶 semver/patch This is a backwards-compatible fix 🐛 type/bug This is a problem

Development

Successfully merging this pull request may close these issues.

@mdx-js/esbuild not resolving relative paths

4 participants