-
Notifications
You must be signed in to change notification settings - Fork 26.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pick esm main fields and condition names first for RSC server layer
- Loading branch information
Showing
13 changed files
with
72 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
test/e2e/app-dir/app-external/node_modules_bak/cjs-esm-compat/index.cjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
exports.packageEntry = 'cjs-esm-compat/index.cjs' |
1 change: 1 addition & 0 deletions
1
test/e2e/app-dir/app-external/node_modules_bak/cjs-esm-compat/index.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const packageEntry = 'cjs-esm-compat/index.mjs' |
7 changes: 7 additions & 0 deletions
7
test/e2e/app-dir/app-external/node_modules_bak/cjs-esm-compat/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"exports": { | ||
"import": "./index.mjs", | ||
"require": "./index.cjs", | ||
"default": "./index.cjs" | ||
} | ||
} |
9 changes: 1 addition & 8 deletions
9
test/e2e/app-dir/app-external/node_modules_bak/cjs-lib/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
const server_1 = require('next/server') | ||
const createResponse = (...args) => { | ||
return new server_1.NextResponse(...args) | ||
} | ||
exports.createResponse = createResponse | ||
|
||
// Note: this is a CJS library that used the `NextResponse` export from `next/server`. | ||
exports.packageName = 'cjs-lib' |
3 changes: 3 additions & 0 deletions
3
test/e2e/app-dir/app-external/node_modules_bak/client-cjs-import-esm-wildcard/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'use client' | ||
|
||
module.exports = require('client-esm-module-wildcard') |
5 changes: 5 additions & 0 deletions
5
test/e2e/app-dir/app-external/node_modules_bak/client-cjs-import-esm-wildcard/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "client-cjs-import-esm-wildcard", | ||
"type": "commonjs", | ||
"exports": "./index.js" | ||
} |
9 changes: 9 additions & 0 deletions
9
test/e2e/app-dir/app-external/node_modules_bak/next-server-cjs-lib/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Object.defineProperty(exports, '__esModule', { value: true }) | ||
const server_1 = require('next/server') | ||
const createResponse = (...args) => { | ||
return new server_1.NextResponse(...args) | ||
} | ||
exports.createResponse = createResponse | ||
|
||
exports.packageName = 'cjs-lib' | ||
// Note: this is a CJS library that used the `NextResponse` export from `next/server`. |
4 changes: 4 additions & 0 deletions
4
test/e2e/app-dir/app-external/node_modules_bak/next-server-cjs-lib/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "next-server-cjs-lib", | ||
"exports": "./index.js" | ||
} |