File tree 4 files changed +6
-7
lines changed
test/production/app-dir/actions-tree-shaking
4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import {
22
22
expect ( actionsRoutesState ) . toMatchObject ( {
23
23
// only one server layer action
24
24
'app/server/page' : {
25
- rsc : 1 ,
25
+ rsc : 3 ,
26
26
} ,
27
27
// only one browser layer action
28
28
'app/client/page' : {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
21
21
22
22
expect ( actionsRoutesState ) . toMatchObject ( {
23
23
'app/mixed-module/esm/page' : {
24
- rsc : 1 ,
24
+ rsc : 3 ,
25
25
} ,
26
26
// CJS import is not able to tree shake, so it will include all actions
27
27
'app/mixed-module/cjs/page' : {
Original file line number Diff line number Diff line change @@ -27,13 +27,12 @@ import { retry } from 'next-test-utils'
27
27
rsc : process . env . TURBOPACK ? 3 : 1 ,
28
28
} ,
29
29
'app/namespace-reexport/client/page' : {
30
- // Turbopack does not support tree-shaking export * as we don't have global information
31
- 'action-browser' : process . env . TURBOPACK ? 3 : 1 ,
30
+ 'action-browser' : 1 ,
32
31
} ,
33
32
// We're not able to tree-shake these re-exports here in webpack mode
34
33
'app/named-reexport/server/page' : {
35
34
// Turbopack supports tree-shaking these re-exports
36
- rsc : process . env . TURBOPACK ? 1 : 3 ,
35
+ rsc : 3 ,
37
36
} ,
38
37
'app/named-reexport/client/page' : {
39
38
// Turbopack supports tree-shaking these re-exports
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ import {
21
21
22
22
expect ( actionsRoutesState ) . toMatchObject ( {
23
23
'app/server/one/page' : {
24
- rsc : 1 ,
24
+ rsc : 3 ,
25
25
} ,
26
26
'app/server/two/page' : {
27
- rsc : 1 ,
27
+ rsc : 3 ,
28
28
} ,
29
29
'app/client/one/page' : {
30
30
'action-browser' : 1 ,
You can’t perform that action at this time.
0 commit comments