Skip to content

Commit cca6933

Browse files
committed
WIP TESTING
1 parent 87b9b9d commit cca6933

File tree

12 files changed

+69
-26
lines changed

12 files changed

+69
-26
lines changed

.vscode/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"jest.runMode": "on-demand",
2323
// Debugging.
2424
"debug.javascript.unmapMissingSources": true,
25-
"files.exclude": {
26-
"*[!test]**/node_modules": true
27-
},
25+
// "files.exclude": {
26+
// "*[!test]**/node_modules": true
27+
// },
2828
// Ensure enough terminal history is preserved when running tests.
2929
"terminal.integrated.scrollback": 10000,
3030
// Configure todo-tree to exclude node_modules, dist, and compiled.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import depA from 'dep-a'
2+
import depB from 'dep-b'
3+
4+
console.log('this is page', depA.VERSION, depB.VERSION)
5+
6+
export default function page() {
7+
return <div>hello</div>
8+
}

bench/app-router-server/app/rsc/page.js

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import lodash from 'lodash'
2+
3+
export default lodash
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "dep-a",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"lodash": "3.10.1"
6+
}
7+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import lodash from 'lodash'
2+
3+
export default lodash
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "dep-b",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"lodash": "4.17.20"
6+
}
7+
}

bench/app-router-server/next.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { NextConfig } from 'next'
2+
3+
const nextConfig: NextConfig = {
4+
serverExternalPackages: ['lodash'],
5+
experimental: {
6+
turbopackModuleIds: 'named',
7+
turbopackMinify: false,
8+
turbopackScopeHoisting: false,
9+
},
10+
}
11+
12+
export default nextConfig

bench/app-router-server/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"webpack-bundle-analyzer": "^4.6.1",
77
"webpack-stats-plugin": "^1.1.0",
88
"next": "workspace:*",
9-
"next-minimal-server": "workspace:*"
9+
"next-minimal-server": "workspace:*",
10+
"dep-a": "file:./dep-a",
11+
"dep-b": "file:./dep-b"
1012
},
1113
"scripts": {
1214
"build-application": "next build",

0 commit comments

Comments
 (0)