Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
9c4efb98
Commit
9c4efb98
authored
Aug 22, 2024
by
Jiachi Liu
Committed by
Janka Uryga
Sep 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply optimization for unused actions (#69178)
parent
5eff016f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
841 additions
and
24 deletions
+841
-24
flight-client-entry-plugin.ts
...t/src/build/webpack/plugins/flight-client-entry-plugin.ts
+187
-24
utils.ts
...production/app-dir/actions-tree-shaking/_testing/utils.ts
+78
-0
actions.js
...duction/app-dir/actions-tree-shaking/basic/app/actions.js
+13
-0
page.js
...ion/app-dir/actions-tree-shaking/basic/app/client/page.js
+21
-0
page.js
...ion/app-dir/actions-tree-shaking/basic/app/inline/page.js
+13
-0
layout.js
...oduction/app-dir/actions-tree-shaking/basic/app/layout.js
+7
-0
page.js
...ion/app-dir/actions-tree-shaking/basic/app/server/page.js
+10
-0
basic-edge.test.ts
...ion/app-dir/actions-tree-shaking/basic/basic-edge.test.ts
+3
-0
basic.test.ts
...oduction/app-dir/actions-tree-shaking/basic/basic.test.ts
+33
-0
layout.js
...r/actions-tree-shaking/mixed-module-actions/app/layout.js
+7
-0
actions.js
...king/mixed-module-actions/app/mixed-module/cjs/actions.js
+13
-0
page.js
...shaking/mixed-module-actions/app/mixed-module/cjs/page.js
+13
-0
actions.js
...king/mixed-module-actions/app/mixed-module/esm/actions.js
+13
-0
page.js
...shaking/mixed-module-actions/app/mixed-module/esm/page.js
+13
-0
mixed-module-actions-edge.test.ts
...ng/mixed-module-actions/mixed-module-actions-edge.test.ts
+3
-0
mixed-module-actions.test.ts
...shaking/mixed-module-actions/mixed-module-actions.test.ts
+29
-0
layout.js
...ction/app-dir/actions-tree-shaking/reexport/app/layout.js
+7
-0
actions.js
...ree-shaking/reexport/app/named-reexport/client/actions.js
+13
-0
page.js
...s-tree-shaking/reexport/app/named-reexport/client/page.js
+21
-0
reexport-action.js
...ing/reexport/app/named-reexport/client/reexport-action.js
+5
-0
actions.js
...ree-shaking/reexport/app/named-reexport/server/actions.js
+13
-0
page.js
...s-tree-shaking/reexport/app/named-reexport/server/page.js
+12
-0
reexport-action.js
...ing/reexport/app/named-reexport/server/reexport-action.js
+5
-0
actions.js
...shaking/reexport/app/namespace-reexport/client/actions.js
+13
-0
page.js
...ee-shaking/reexport/app/namespace-reexport/client/page.js
+21
-0
actions.js
...shaking/reexport/app/namespace-reexport/server/actions.js
+13
-0
page.js
...ee-shaking/reexport/app/namespace-reexport/server/page.js
+12
-0
reexport-edge.test.ts
...p-dir/actions-tree-shaking/reexport/reexport-edge.test.ts
+3
-0
reexport.test.ts
...on/app-dir/actions-tree-shaking/reexport/reexport.test.ts
+35
-0
actions.js
...-tree-shaking/shared-module-actions/app/client/actions.js
+13
-0
page.js
...tree-shaking/shared-module-actions/app/client/one/page.js
+22
-0
page.js
...tree-shaking/shared-module-actions/app/client/two/page.js
+22
-0
layout.js
.../actions-tree-shaking/shared-module-actions/app/layout.js
+7
-0
actions.js
...-tree-shaking/shared-module-actions/app/server/actions.js
+13
-0
page.js
...tree-shaking/shared-module-actions/app/server/one/page.js
+13
-0
page.js
...tree-shaking/shared-module-actions/app/server/two/page.js
+13
-0
shared-module-actions-edge.test.ts
.../shared-module-actions/shared-module-actions-edge.test.ts
+3
-0
shared-module-actions.test.ts
...aking/shared-module-actions/shared-module-actions.test.ts
+34
-0
turbopack-build-tests-manifest.json
test/turbopack-build-tests-manifest.json
+72
-0
No files found.
packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts
View file @
9c4efb98
This diff is collapsed.
Click to expand it.
test/production/app-dir/actions-tree-shaking/_testing/utils.ts
0 → 100644
View file @
9c4efb98
import
{
type
NextInstance
}
from
'e2e-utils'
async
function
getActionsMappingByRuntime
(
next
:
NextInstance
,
runtime
:
'node'
|
'edge'
)
{
const
manifest
=
JSON
.
parse
(
await
next
.
readFile
(
'.next/server/server-reference-manifest.json'
)
)
return
manifest
[
runtime
]
}
export
function
markLayoutAsEdge
(
next
:
NextInstance
)
{
beforeAll
(
async
()
=>
{
await
next
.
stop
()
const
layoutContent
=
await
next
.
readFile
(
'app/layout.js'
)
await
next
.
patchFile
(
'app/layout.js'
,
layoutContent
+
`\nexport const runtime = 'edge'`
)
await
next
.
start
()
})
}
/*
{
[route path]: { [layer]: Set<workerId> ]
}
*/
type
ActionsMappingOfRuntime
=
{
[
actionId
:
string
]:
{
workers
:
{
[
route
:
string
]:
string
}
layer
:
{
[
route
:
string
]:
string
}
}
}
type
ActionState
=
{
[
route
:
string
]:
{
[
layer
:
string
]:
number
}
}
function
getActionsRoutesState
(
actionsMappingOfRuntime
:
ActionsMappingOfRuntime
):
ActionState
{
const
state
:
ActionState
=
{}
Object
.
keys
(
actionsMappingOfRuntime
).
forEach
((
actionId
)
=>
{
const
action
=
actionsMappingOfRuntime
[
actionId
]
const
routePaths
=
Object
.
keys
(
action
.
workers
)
routePaths
.
forEach
((
routePath
)
=>
{
if
(
!
state
[
routePath
])
{
state
[
routePath
]
=
{}
}
const
layer
=
action
.
layer
[
routePath
]
if
(
!
state
[
routePath
][
layer
])
{
state
[
routePath
][
layer
]
=
0
}
state
[
routePath
][
layer
]
++
})
})
return
state
}
export
async
function
getActionsRoutesStateByRuntime
(
next
:
NextInstance
)
{
const
actionsMappingOfRuntime
=
await
getActionsMappingByRuntime
(
next
,
process
.
env
.
TEST_EDGE
?
'edge'
:
'node'
)
return
getActionsRoutesState
(
actionsMappingOfRuntime
)
}
test/production/app-dir/actions-tree-shaking/basic/app/actions.js
0 → 100644
View file @
9c4efb98
'use server'
export
async
function
serverComponentAction
()
{
return
'server-action'
}
export
async
function
clientComponentAction
()
{
return
'client-action'
}
export
async
function
unusedExportedAction
()
{
return
'unused-exported-action'
}
test/production/app-dir/actions-tree-shaking/basic/app/client/page.js
0 → 100644
View file @
9c4efb98
'use client'
import
{
useState
}
from
'react'
import
{
clientComponentAction
}
from
'../actions'
export
default
function
Page
()
{
const
[
text
,
setText
]
=
useState
(
'initial'
)
return
(
<
div
>
<
button
id
=
"action-1"
onClick
=
{
async
()
=>
{
setText
(
await
clientComponentAction
())
}}
>
Action
1
<
/button
>
<
span
>
{
text
}
<
/span
>
<
/div
>
)
}
test/production/app-dir/actions-tree-shaking/basic/app/inline/page.js
0 → 100644
View file @
9c4efb98
export
default
function
Page
()
{
// Inline Server Action
async
function
inlineServerAction
()
{
'use server'
return
'inline-server-action'
}
return
(
<
form
action
=
{
inlineServerAction
}
>
<
button
type
=
"submit"
>
Submit
<
/button
>
<
/form
>
)
}
test/production/app-dir/actions-tree-shaking/basic/app/layout.js
0 → 100644
View file @
9c4efb98
export
default
function
Layout
({
children
})
{
return
(
<
html
>
<
body
>
{
children
}
<
/body
>
<
/html
>
)
}
test/production/app-dir/actions-tree-shaking/basic/app/server/page.js
0 → 100644
View file @
9c4efb98
import
{
serverComponentAction
}
from
'../actions'
export
default
function
Page
()
{
return
(
<
form
>
<
input
type
=
"text"
placeholder
=
"input"
/>
<
button
formAction
=
{
serverComponentAction
}
>
submit
<
/button
>
<
/form
>
)
}
test/production/app-dir/actions-tree-shaking/basic/basic-edge.test.ts
0 → 100644
View file @
9c4efb98
process
.
env
.
TEST_EDGE
=
'1'
require
(
'./basic.test'
)
test/production/app-dir/actions-tree-shaking/basic/basic.test.ts
0 → 100644
View file @
9c4efb98
import
{
nextTestSetup
}
from
'e2e-utils'
import
{
getActionsRoutesStateByRuntime
,
markLayoutAsEdge
,
}
from
'../_testing/utils'
describe
(
'actions-tree-shaking - basic'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
files
:
__dirname
,
})
if
(
process
.
env
.
TEST_EDGE
)
{
markLayoutAsEdge
(
next
)
}
it
(
'should not have the unused action in the manifest'
,
async
()
=>
{
const
actionsRoutesState
=
await
getActionsRoutesStateByRuntime
(
next
)
expect
(
actionsRoutesState
).
toMatchObject
({
// only one server layer action
'app/server/page'
:
{
rsc
:
1
,
},
// only one browser layer action
'app/client/page'
:
{
'action-browser'
:
1
,
},
'app/inline/page'
:
{
rsc
:
1
,
},
})
})
})
test/production/app-dir/actions-tree-shaking/mixed-module-actions/app/layout.js
0 → 100644
View file @
9c4efb98
export
default
function
Layout
({
children
})
{
return
(
<
html
>
<
body
>
{
children
}
<
/body
>
<
/html
>
)
}
test/production/app-dir/actions-tree-shaking/mixed-module-actions/app/mixed-module/cjs/actions.js
0 → 100644
View file @
9c4efb98
'use server'
export
async
function
esmModuleTypeAction
()
{
return
'esm-module-type-action'
}
export
async
function
cjsModuleTypeAction
()
{
return
'cjs-module-type-action'
}
export
async
function
unusedModuleTypeAction1
()
{
return
'unused-module-type-action-1'
}
test/production/app-dir/actions-tree-shaking/mixed-module-actions/app/mixed-module/cjs/page.js
0 → 100644
View file @
9c4efb98
const
{
cjsModuleTypeAction
}
=
require
(
'./actions'
)
export
default
function
Page
()
{
return
(
<
div
>
<
h3
>
One
<
/h3
>
<
form
>
<
input
type
=
"text"
placeholder
=
"input"
/>
<
button
formAction
=
{
cjsModuleTypeAction
}
>
submit
<
/button
>
<
/form
>
<
/div
>
)
}
test/production/app-dir/actions-tree-shaking/mixed-module-actions/app/mixed-module/esm/actions.js
0 → 100644
View file @
9c4efb98
'use server'
export
async
function
esmModuleTypeAction
()
{
return
'esm-module-type-action'
}
export
async
function
cjsModuleTypeAction
()
{
return
'cjs-module-type-action'
}
export
async
function
unusedModuleTypeAction1
()
{
return
'unused-module-type-action-1'
}
test/production/app-dir/actions-tree-shaking/mixed-module-actions/app/mixed-module/esm/page.js
0 → 100644
View file @
9c4efb98
import
{
esmModuleTypeAction
}
from
'./actions'
export
default
function
Page
()
{
return
(
<
div
>
<
h3
>
One
<
/h3
>
<
form
>
<
input
type
=
"text"
placeholder
=
"input"
/>
<
button
formAction
=
{
esmModuleTypeAction
}
>
submit
<
/button
>
<
/form
>
<
/div
>
)
}
test/production/app-dir/actions-tree-shaking/mixed-module-actions/mixed-module-actions-edge.test.ts
0 → 100644
View file @
9c4efb98
process
.
env
.
TEST_EDGE
=
'1'
require
(
'./mixed-module-actions.test'
)
test/production/app-dir/actions-tree-shaking/mixed-module-actions/mixed-module-actions.test.ts
0 → 100644
View file @
9c4efb98
import
{
nextTestSetup
}
from
'e2e-utils'
import
{
getActionsRoutesStateByRuntime
,
markLayoutAsEdge
,
}
from
'../_testing/utils'
describe
(
'actions-tree-shaking - mixed-module-actions'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
files
:
__dirname
,
})
if
(
process
.
env
.
TEST_EDGE
)
{
markLayoutAsEdge
(
next
)
}
it
(
'should not do tree shake for cjs module when import server actions'
,
async
()
=>
{
const
actionsRoutesState
=
await
getActionsRoutesStateByRuntime
(
next
)
expect
(
actionsRoutesState
).
toMatchObject
({
'app/mixed-module/esm/page'
:
{
rsc
:
1
,
},
// CJS import is not able to tree shake, so it will include all actions
'app/mixed-module/cjs/page'
:
{
rsc
:
3
,
},
})
})
})
test/production/app-dir/actions-tree-shaking/reexport/app/layout.js
0 → 100644
View file @
9c4efb98
export
default
function
Layout
({
children
})
{
return
(
<
html
>
<
body
>
{
children
}
<
/body
>
<
/html
>
)
}
test/production/app-dir/actions-tree-shaking/reexport/app/named-reexport/client/actions.js
0 → 100644
View file @
9c4efb98
'use server'
export
async
function
sharedClientLayerAction
()
{
return
'shared-client-layer-action'
}
export
async
function
unusedClientLayerAction1
()
{
return
'unused-client-layer-action-1'
}
export
async
function
unusedClientLayerAction2
()
{
return
'unused-client-layer-action-2'
}
test/production/app-dir/actions-tree-shaking/reexport/app/named-reexport/client/page.js
0 → 100644
View file @
9c4efb98
'use client'
import
{
useState
}
from
'react'
import
{
sharedClientLayerAction
}
from
'./reexport-action'
export
default
function
Page
()
{
const
[
text
,
setText
]
=
useState
(
'initial'
)
return
(
<
div
>
<
button
id
=
"action-1"
onClick
=
{
async
()
=>
{
setText
(
await
sharedClientLayerAction
())
}}
>
Action
1
<
/button
>
<
span
>
{
text
}
<
/span
>
<
/div
>
)
}
test/production/app-dir/actions-tree-shaking/reexport/app/named-reexport/client/reexport-action.js
0 → 100644
View file @
9c4efb98
export
{
sharedClientLayerAction
,
unusedClientLayerAction1
,
unusedClientLayerAction2
,
}
from
'./actions'
test/production/app-dir/actions-tree-shaking/reexport/app/named-reexport/server/actions.js
0 → 100644
View file @
9c4efb98
'use server'
export
async
function
sharedServerLayerAction
()
{
return
'shared-server-layer-action'
}
export
async
function
unusedServerLayerAction1
()
{
return
'unused-server-layer-action-1'
}
export
async
function
unusedServerLayerAction2
()
{
return
'unused-server-layer-action-2'
}
test/production/app-dir/actions-tree-shaking/reexport/app/named-reexport/server/page.js
0 → 100644
View file @
9c4efb98
import
{
sharedServerLayerAction
}
from
'./reexport-action'
export
default
function
Page
()
{
return
(
<
div
>
<
form
>
<
input
type
=
"text"
placeholder
=
"input"
/>
<
button
formAction
=
{
sharedServerLayerAction
}
>
submit
<
/button
>
<
/form
>
<
/div
>
)
}
test/production/app-dir/actions-tree-shaking/reexport/app/named-reexport/server/reexport-action.js
0 → 100644
View file @
9c4efb98
export
{
sharedServerLayerAction
,
unusedServerLayerAction1
,
unusedServerLayerAction2
,
}
from
'./actions'
test/production/app-dir/actions-tree-shaking/reexport/app/namespace-reexport/client/actions.js
0 → 100644
View file @
9c4efb98
'use server'
export
async
function
sharedClientLayerAction
()
{
return
'shared-client-layer-action'
}
export
async
function
unusedClientLayerAction1
()
{
return
'unused-client-layer-action-1'
}
export
async
function
unusedClientLayerAction2
()
{
return
'unused-client-layer-action-2'
}
test/production/app-dir/actions-tree-shaking/reexport/app/namespace-reexport/client/page.js
0 → 100644
View file @
9c4efb98
'use client'
import
{
useState
}
from
'react'
import
*
as
actionMod
from
'./actions'
export
default
function
Page
()
{
const
[
text
,
setText
]
=
useState
(
'initial'
)
return
(
<
div
>
<
button
id
=
"action-1"
onClick
=
{
async
()
=>
{
setText
(
await
actionMod
.
sharedClientLayerAction
())
}}
>
Action
1
<
/button
>
<
span
>
{
text
}
<
/span
>
<
/div
>
)
}
test/production/app-dir/actions-tree-shaking/reexport/app/namespace-reexport/server/actions.js
0 → 100644
View file @
9c4efb98
'use server'
export
async
function
sharedServerLayerAction
()
{
return
'shared-server-layer-action'
}
export
async
function
unusedServerLayerAction1
()
{
return
'unused-server-layer-action-1'
}
export
async
function
unusedServerLayerAction2
()
{
return
'unused-server-layer-action-2'
}
test/production/app-dir/actions-tree-shaking/reexport/app/namespace-reexport/server/page.js
0 → 100644
View file @
9c4efb98
import
*
as
actionMod
from
'./actions'
export
default
function
Page
()
{
return
(
<
div
>
<
form
>
<
input
type
=
"text"
placeholder
=
"input"
/>
<
button
formAction
=
{
actionMod
.
sharedServerLayerAction
}
>
submit
<
/button
>
<
/form
>
<
/div
>
)
}
test/production/app-dir/actions-tree-shaking/reexport/reexport-edge.test.ts
0 → 100644
View file @
9c4efb98
process
.
env
.
TEST_EDGE
=
'1'
require
(
'./reexport.test'
)
test/production/app-dir/actions-tree-shaking/reexport/reexport.test.ts
0 → 100644
View file @
9c4efb98
import
{
nextTestSetup
}
from
'e2e-utils'
import
{
getActionsRoutesStateByRuntime
,
markLayoutAsEdge
,
}
from
'../_testing/utils'
describe
(
'actions-tree-shaking - reexport'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
files
:
__dirname
,
})
if
(
process
.
env
.
TEST_EDGE
)
{
markLayoutAsEdge
(
next
)
}
it
(
'should not have the unused action in the manifest'
,
async
()
=>
{
const
actionsRoutesState
=
await
getActionsRoutesStateByRuntime
(
next
)
expect
(
actionsRoutesState
).
toMatchObject
({
'app/namespace-reexport/server/page'
:
{
rsc
:
1
,
},
'app/namespace-reexport/client/page'
:
{
'action-browser'
:
1
,
},
// We're not able to tree-shake these re-exports here
'app/named-reexport/server/page'
:
{
rsc
:
3
,
},
'app/named-reexport/client/page'
:
{
'action-browser'
:
3
,
},
})
})
})
test/production/app-dir/actions-tree-shaking/shared-module-actions/app/client/actions.js
0 → 100644
View file @
9c4efb98
'use server'
export
async
function
sharedClientLayerAction
()
{
return
'shared-client-layer-action'
}
export
async
function
unusedClientLayerAction1
()
{
return
'unused-client-layer-action-1'
}
export
async
function
unusedClientLayerAction2
()
{
return
'unused-client-layer-action-2'
}
test/production/app-dir/actions-tree-shaking/shared-module-actions/app/client/one/page.js
0 → 100644
View file @
9c4efb98
'use client'
import
{
useState
}
from
'react'
import
{
sharedClientLayerAction
}
from
'../actions'
export
default
function
Page
()
{
const
[
text
,
setText
]
=
useState
(
'initial'
)
return
(
<
div
>
<
h1
>
One
<
/h1
>
<
button
id
=
"action-1"
onClick
=
{
async
()
=>
{
setText
(
await
sharedClientLayerAction
())
}}
>
Action
1
<
/button
>
<
span
>
{
text
}
<
/span
>
<
/div
>
)
}
test/production/app-dir/actions-tree-shaking/shared-module-actions/app/client/two/page.js
0 → 100644
View file @
9c4efb98
'use client'
import
{
useState
}
from
'react'
import
{
sharedClientLayerAction
}
from
'../actions'
export
default
function
Page
()
{
const
[
text
,
setText
]
=
useState
(
'initial'
)
return
(
<
div
>
<
h1
>
Two
<
/h1
>
<
button
id
=
"action-1"
onClick
=
{
async
()
=>
{
setText
(
await
sharedClientLayerAction
())
}}
>
Action
1
<
/button
>
<
span
>
{
text
}
<
/span
>
<
/div
>
)
}
test/production/app-dir/actions-tree-shaking/shared-module-actions/app/layout.js
0 → 100644
View file @
9c4efb98
export
default
function
Layout
({
children
})
{
return
(
<
html
>
<
body
>
{
children
}
<
/body
>
<
/html
>
)
}
test/production/app-dir/actions-tree-shaking/shared-module-actions/app/server/actions.js
0 → 100644
View file @
9c4efb98
'use server'
export
async
function
sharedServerLayerAction
()
{
return
'shared-server-layer-action'
}
export
async
function
unusedServerLayerAction1
()
{
return
'unused-server-layer-action-1'
}
export
async
function
unusedServerLayerAction2
()
{
return
'unused-server-layer-action-2'
}
test/production/app-dir/actions-tree-shaking/shared-module-actions/app/server/one/page.js
0 → 100644
View file @
9c4efb98
import
{
sharedServerLayerAction
}
from
'../actions'
export
default
function
Page
()
{
return
(
<
div
>
<
h3
>
One
<
/h3
>
<
form
>
<
input
type
=
"text"
placeholder
=
"input"
/>
<
button
formAction
=
{
sharedServerLayerAction
}
>
submit
<
/button
>
<
/form
>
<
/div
>
)
}
test/production/app-dir/actions-tree-shaking/shared-module-actions/app/server/two/page.js
0 → 100644
View file @
9c4efb98
import
{
sharedServerLayerAction
}
from
'../actions'
export
default
function
Page
()
{
return
(
<
div
>
<
h3
>
One
<
/h3
>
<
form
>
<
input
type
=
"text"
placeholder
=
"input"
/>
<
button
formAction
=
{
sharedServerLayerAction
}
>
submit
<
/button
>
<
/form
>
<
/div
>
)
}
test/production/app-dir/actions-tree-shaking/shared-module-actions/shared-module-actions-edge.test.ts
0 → 100644
View file @
9c4efb98
process
.
env
.
TEST_EDGE
=
'1'
require
(
'./shared-module-actions.test'
)
test/production/app-dir/actions-tree-shaking/shared-module-actions/shared-module-actions.test.ts
0 → 100644
View file @
9c4efb98
import
{
nextTestSetup
}
from
'e2e-utils'
import
{
getActionsRoutesStateByRuntime
,
markLayoutAsEdge
,
}
from
'../_testing/utils'
describe
(
'actions-tree-shaking - shared-module-actions'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
files
:
__dirname
,
})
if
(
process
.
env
.
TEST_EDGE
)
{
markLayoutAsEdge
(
next
)
}
it
(
'should not have the unused action in the manifest'
,
async
()
=>
{
const
actionsRoutesState
=
await
getActionsRoutesStateByRuntime
(
next
)
expect
(
actionsRoutesState
).
toMatchObject
({
'app/server/one/page'
:
{
rsc
:
1
,
},
'app/server/two/page'
:
{
rsc
:
1
,
},
'app/client/one/page'
:
{
'action-browser'
:
1
,
},
'app/client/two/page'
:
{
'action-browser'
:
1
,
},
})
})
})
test/turbopack-build-tests-manifest.json
View file @
9c4efb98
...
...
@@ -15528,6 +15528,78 @@
"pending"
:
[],
"flakey"
:
[],
"runtimeError"
:
false
},
"test/production/app-dir/actions-tree-shaking/basic/basic.test.ts"
:
{
"passed"
:
[],
"failed"
:
[
"actions-tree-shaking - basic should not have the unused action in the manifest"
],
"pending"
:
[],
"flakey"
:
[],
"runtimeError"
:
false
},
"test/production/app-dir/actions-tree-shaking/mixed-module-actions/mixed-module-actions.test.ts"
:
{
"passed"
:
[],
"failed"
:
[
"actions-tree-shaking - mixed-module-actions should not do tree shake for cjs module when import server actions"
],
"pending"
:
[],
"flakey"
:
[],
"runtimeError"
:
false
},
"test/production/app-dir/actions-tree-shaking/reexport/reexport.test.ts"
:
{
"passed"
:
[],
"failed"
:
[
"actions-tree-shaking - reexport should not have the unused action in the manifest"
],
"pending"
:
[],
"flakey"
:
[],
"runtimeError"
:
false
},
"test/production/app-dir/actions-tree-shaking/shared-module-actions/shared-module-actions.test.ts"
:
{
"passed"
:
[],
"failed"
:
[
"actions-tree-shaking - shared-module-actions should not have the unused action in the manifest"
],
"pending"
:
[],
"flakey"
:
[],
"runtimeError"
:
false
},
"test/production/app-dir/actions-tree-shaking/basic/basic-edge.test.ts"
:
{
"passed"
:
[],
"failed"
:
[
"actions-tree-shaking - basic should not have the unused action in the manifest"
],
"pending"
:
[],
"flakey"
:
[],
"runtimeError"
:
false
},
"test/production/app-dir/actions-tree-shaking/mixed-module-actions/mixed-module-actions-edge.test.ts"
:
{
"passed"
:
[],
"failed"
:
[
"actions-tree-shaking - mixed-module-actions should not do tree shake for cjs module when import server actions"
],
"pending"
:
[],
"flakey"
:
[],
"runtimeError"
:
false
},
"test/production/app-dir/actions-tree-shaking/reexport/reexport-edge.test.ts"
:
{
"passed"
:
[],
"failed"
:
[
"actions-tree-shaking - reexport should not have the unused action in the manifest"
],
"pending"
:
[],
"flakey"
:
[],
"runtimeError"
:
false
},
"test/production/app-dir/actions-tree-shaking/shared-module-actions/shared-module-actions-edge.test.ts"
:
{
"passed"
:
[],
"failed"
:
[
"actions-tree-shaking - shared-module-actions should not have the unused action in the manifest"
],
"pending"
:
[],
"flakey"
:
[],
"runtimeError"
:
false
}
},
"rules"
:
{
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment