rsnext/packages
Jiachi Liu e0399ca6dc
Support next/og usage in ESM nextjs app (#60818)
### What 

Follow up for #59852 , now you can use `next/og` if your nextjs app is
marked as ESM with `"type": "module"` in package.json.

### How

It's a bug in external handling, we shouldn't ESM import error for local
requests. Previously you'll see the below error but the
og import shouldn't be errored as it's not external package

```
Module not found: ESM packages (/.../app/opengraph-image.js) need to be imported. Use 'import' to reference the package instead
 https://nextjs.org/docs/messages/import-esm-externals
```


Closes NEXT-2147
2024-01-18 13:44:50 +01:00
..
create-next-app v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
eslint-config-next v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
eslint-plugin-next v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
font v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
next Support next/og usage in ESM nextjs app (#60818) 2024-01-18 13:44:50 +01:00
next-bundle-analyzer v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
next-codemod v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
next-env v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
next-mdx v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
next-plugin-storybook v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
next-polyfill-module v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
next-polyfill-nomodule v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
next-swc Fix Server Actions compiler bug (#60794) 2024-01-18 01:29:07 +01:00
react-dev-overlay v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
react-refresh-utils v14.0.5-canary.65 2024-01-17 23:23:34 +00:00
third-parties v14.0.5-canary.65 2024-01-17 23:23:34 +00:00