mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
The SWC options for ES modules of third-party dependencies that include `next/dist/client` in their filename, e.g. `<snip>/adapter-next/dist/client/index.js`, incorrectly defined `commonjs` as module type because the regular expression that checks for internal Next.js CJS files did not include a leading slash. We're now using `require.resolve` to fully match the Next.js filenames, instead of relying on a partial regex match. fixes #73413
13 lines
167 B
JSON
13 lines
167 B
JSON
{
|
|
"name": "@monorepo/adapter-next",
|
|
"type": "module",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"default": "./dist/client/index.js"
|
|
}
|
|
}
|
|
}
|