-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for serverExternalPackages inside node_modules (#68156)
Adds a test for the change in #67948
- Loading branch information
Showing
8 changed files
with
35 additions
and
1 deletion.
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
6 changes: 6 additions & 0 deletions
6
test/e2e/app-dir/app-external/app/transitive-external/page.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,6 @@ | ||
import { load } from 'transitive' | ||
|
||
export default async function Page() { | ||
let value = await load('a') | ||
return <d1iv>{value}</d1iv> | ||
} |
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,5 +1,9 @@ | ||
module.exports = { | ||
reactStrictMode: true, | ||
transpilePackages: ['css', 'font', 'transpile-ts-lib', 'transpile-cjs-lib'], | ||
serverExternalPackages: ['conditional-exports-optout', 'dual-pkg-optout'], | ||
serverExternalPackages: [ | ||
'conditional-exports-optout', | ||
'dual-pkg-optout', | ||
'transitive-external', | ||
], | ||
} |
1 change: 1 addition & 0 deletions
1
test/e2e/app-dir/app-external/node_modules/transitive-external/a.mjs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
test/e2e/app-dir/app-external/node_modules/transitive-external/index.mjs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
test/e2e/app-dir/app-external/node_modules/transitive-external/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
test/e2e/app-dir/app-external/node_modules/transitive/index.mjs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
test/e2e/app-dir/app-external/node_modules/transitive/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.