File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
packages/rolldown/src/node/rolldown Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ export type RolldownEvent = Event & {
1010
1111type ModuleBuildHookEvents = ( Exclude < Event , 'StringRef' > & ( HookResolveIdCallStart | HookResolveIdCallEnd | HookLoadCallStart | HookLoadCallEnd | HookTransformCallStart | HookTransformCallEnd ) ) & { event_id : string }
1212
13- const DURATION_THRESHOLD = 10
1413const MODULE_BUILD_START_HOOKS = [ 'HookResolveIdCallStart' , 'HookLoadCallStart' , 'HookTransformCallStart' ]
1514const MODULE_BUILD_END_HOOKS = [ 'HookResolveIdCallEnd' , 'HookLoadCallEnd' , 'HookTransformCallEnd' ]
1615
@@ -77,9 +76,6 @@ export class RolldownEventsManager {
7776 } )
7877 }
7978 else if ( event . action === 'HookLoadCallEnd' ) {
80- if ( ! event . content && info . duration < DURATION_THRESHOLD ) {
81- return
82- }
8379 module_build_metrics . loads . push ( {
8480 ...info ,
8581 type : 'load' ,
@@ -95,10 +91,6 @@ export class RolldownEventsManager {
9591 else if ( event . action === 'HookTransformCallEnd' ) {
9692 const _start = start as HookTransformCallStart
9793 const _end = event as HookTransformCallEnd
98- const no_changes = _start . content === _end . content
99- if ( no_changes && info . duration < DURATION_THRESHOLD ) {
100- return
101- }
10294
10395 module_build_metrics . transforms . push ( {
10496 ...info ,
You can’t perform that action at this time.
0 commit comments