Turbopack: reapply `typeof module` replacement (#69158)
Reapply #68842 after it was reverted in https://github.com/vercel/next.js/pull/69156 Now it should really only do it if it's really not an ESM module (= CJS) The replacement now has the same condition as used when Turbopack determines whether a given module should get access to `module`: https://github.com/vercel/next.js/blob/161cd00c7bc91e9dc29842427af0cc6f810267bb/turbopack/crates/turbopack-ecmascript/src/chunk/item.rs#L51 https://github.com/vercel/next.js/blob/161cd00c7bc91e9dc29842427af0cc6f810267bb/turbopack/crates/turbopack-ecmascript/src/lib.rs#L880-L881
Showing
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment