-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Disable mdx parsing in turbotrace #3304
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Benchmark for 012bd95Click to view benchmark
|
⏳ CI is running again... ⏳ |
crates/turbopack/tests/node-file-trace/integration/mdx/index.js
Outdated
Show resolved
Hide resolved
Benchmark for 83bf78cClick to view benchmark
|
Why do we not want to parse in turbotrace? Don't we still want to resolve the imports of the mdx files? |
34c6e30
to
46d21ec
Compare
Align the behavior with https://github.com/vercel/nft. Turbotrace is running in two phases in next.js projects:
Tracing the webpack entries is because we need to trace static assets like CSS/images that could not be traced in output. So, ignoring MDX is totally safe in this step. |
@Brooooooklyn what happens when you import css or an image from mdx? |
You could use https://mdxjs.com/packages/node-loader/ from node to import mdx. In which case we also need to trace dependencies in mdx, so mdx need to be parsed. |
In this case, they can use |
Benchmark for 1c04f5d
Click to view full benchmark
|
46d21ec
to
1659f9b
Compare
@sokra added the |
Benchmark for 115fdf8Click to view benchmark
|
Benchmark for 8b4f754Click to view benchmark
|
Benchmark for 72d4294
Click to view full benchmark
|
Benchmark for 6e3bc66Click to view benchmark
|
Benchmark for 4e8e53b
Click to view full benchmark
|
It's not necessary to enable `MDX` parsing in turbotrace, and there was a parsing error that caused the build to fail when I was trying to enable turbotrace in `verce/site`: https://vercel.com/vercel/vercel-site/7pFWUVMWVAv3jC44WD2nBnwrbJpM Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
It's not necessary to enable `MDX` parsing in turbotrace, and there was a parsing error that caused the build to fail when I was trying to enable turbotrace in `verce/site`: https://vercel.com/vercel/vercel-site/7pFWUVMWVAv3jC44WD2nBnwrbJpM Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
It's not necessary to enable `MDX` parsing in turbotrace, and there was a parsing error that caused the build to fail when I was trying to enable turbotrace in `verce/site`: https://vercel.com/vercel/vercel-site/7pFWUVMWVAv3jC44WD2nBnwrbJpM Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
It's not necessary to enable `MDX` parsing in turbotrace, and there was a parsing error that caused the build to fail when I was trying to enable turbotrace in `verce/site`: https://vercel.com/vercel/vercel-site/7pFWUVMWVAv3jC44WD2nBnwrbJpM Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
It's not necessary to enable
MDX
parsing in turbotrace, and there was a parsing error that caused the build to fail when I was trying to enable turbotrace inverce/site
: https://vercel.com/vercel/vercel-site/7pFWUVMWVAv3jC44WD2nBnwrbJpM