rsnext/test/e2e/app-dir/app-esm-js
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
..
app Support next/og usage in ESM nextjs app (#60818) 2024-01-18 13:44:50 +01:00
pages Alias nextjs api entry to esm version for app router (#59852) 2023-12-23 17:46:50 +01:00
public Alias nextjs api entry to esm version for app router (#59852) 2023-12-23 17:46:50 +01:00
index.test.ts Support next/og usage in ESM nextjs app (#60818) 2024-01-18 13:44:50 +01:00
package.json Alias nextjs api entry to esm version for app router (#59852) 2023-12-23 17:46:50 +01:00