Commit graph

2 commits

Author SHA1 Message Date
Justin Ridgewell
82ac6f45f8 Update mdxjs and testing crates (vercel/turbo#3398)
This updates our `mdxjs` dependency to the tip of
https://github.com/wooorm/mdxjs-rs/pull/11, so that we can update it's
`swc_core` dependency (it conflicts with ours).

It also updates the `testing` crate to update it's `swc_common`
dependency (also conflicting with ours), and makes it a workspace
dependency.
2023-01-20 13:47:41 -05:00
Alex Kirszenberg
4ffd82c8da Apply the next/dynamic SWC transform (vercel/turbo#3184)
This PR adds the next/dynamic SWC transform to the repo. This is copied
over from the implementation in
[](f70a6bfb86/packages/next-swc/crates/core/src/next_dynamic.rs),
with an additional mode for Turbopack.

For now, it applies it to all sources files (excluding node_modules, but
including embedded modules).

I've refactored the Next transforms logic to make it more easily
extendable in the future, and avoid creating more Vcs than absolutely
necessary.

This PR is the last item in the list of what's needed to support
next/dynamic in development.
2023-01-13 14:18:14 +01:00