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(remix-dev): make MDX builds deterministic #3966

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

jenseng
Copy link
Contributor

@jenseng jenseng commented Aug 8, 2022

This is a fix along the lines of #2027; because the MDX virtual modules resolve to absolute paths, the manifest/hashes/etc. differ based on the parent directory structure.

Refs: #2024

  • Tests

Testing Strategy:

  1. Expanded existing integration test to cover this scenario (fails without the fix). Also add other virtual module scenarios that weren't already covered
  2. Validated in a real MDX Remix app that has split client / server builds (applied fix via patch-package)

@changeset-bot
Copy link

changeset-bot bot commented Aug 8, 2022

🦋 Changeset detected

Latest commit: 354924c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
@remix-run/dev Patch
create-remix Patch
remix Patch
@remix-run/eslint-config Patch
@remix-run/react Patch
@remix-run/serve Patch
@remix-run/server-runtime Patch
@remix-run/cloudflare Patch
@remix-run/node Patch
@remix-run/deno Patch
@remix-run/cloudflare-pages Patch
@remix-run/cloudflare-workers Patch
@remix-run/express Patch
@remix-run/netlify Patch
@remix-run/vercel Patch
@remix-run/architect Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This is a fix along the lines of remix-run#2027; because the MDX virtual modules
resolve to absolute paths, the manifest/hashes/etc. differ based on the
parent directory structure.

Testing notes:
1. Expanded existing integration test to cover this scenario (fails without
   the fix). Also add other virtual module scenarios that weren't already
   covered
2. Validated in a real MDX Remix app that has split client / server builds
   (applied fix via patch-package)
Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Yup 👍 Thank you as always @jenseng!

@kentcdodds kentcdodds merged commit cda26ea into remix-run:dev Aug 8, 2022
@MichaelDeBoey MichaelDeBoey added the awaiting release This issue has been fixed and will be released soon label Aug 9, 2022
@MichaelDeBoey MichaelDeBoey removed the awaiting release This issue has been fixed and will be released soon label Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants