mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Reverts vercel/next.js#56766 Reland vercel/next.js#56532 x-ref: https://vercel.slack.com/archives/C04DUD7EB1B/p1697576563771229?thread_ts=1697146531.305779&cid=C04DUD7EB1B This change was breaking package which was actually a dual package but marked as esm module, and when the package is ESM but import a CJS dependency without fully spepcified file path it will fail to resolve. The way is to either remove the esmodule type in package.json or change the import to full path import with extension for the package
21 lines
466 B
JavaScript
21 lines
466 B
JavaScript
import v from 'conditional-exports-optout'
|
|
import v1 from 'conditional-exports-optout/subpath'
|
|
import { getReactVersion } from 'conditional-exports-optout/react'
|
|
|
|
import Client from './client'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<div>
|
|
{`Server: ${v}`}
|
|
<br />
|
|
{`Server subpath: ${v1}`}
|
|
<br />
|
|
<Client />
|
|
<p id="optout-react-version">
|
|
{`opt-out-react-version: ${getReactVersion()}`}
|
|
</p>
|
|
</div>
|
|
)
|
|
}
|