c8925c36db
### What Provide a codemod to transform the promise of the access to named export properties in dynamic import `next/dynamic`, this codemod transform all the `next/dynamic` imports to ensure returning an object value with `default` property, aligning with what `React.lazy` is returning ### Why Follow up for #66990 It's not allowed to do dynamic import and access it's named export while using `next/dynamic` in server component, and the dynamic import module is from a client component. It's like accessing the nested client side property of a module |
||
---|---|---|
.. | ||
__testfixtures__ | ||
__tests__ | ||
add-missing-react-import.ts | ||
built-in-next-font.ts | ||
cra-to-next.ts | ||
metadata-to-viewport-export.ts | ||
name-default-component.ts | ||
new-link.ts | ||
next-dynamic-access-named-export.ts | ||
next-image-experimental.ts | ||
next-image-to-legacy-image.ts | ||
next-og-import.ts | ||
url-to-withrouter.ts | ||
withamp-to-config.ts |