Skip to content

Commit 27cef2f

Browse files
authored
fix(rolldown): remove hooks filter (#180)
1 parent 421fe03 commit 27cef2f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/rolldown/src/node/rolldown/events-manager.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export type RolldownEvent = Event & {
1010

1111
type ModuleBuildHookEvents = (Exclude<Event, 'StringRef'> & (HookResolveIdCallStart | HookResolveIdCallEnd | HookLoadCallStart | HookLoadCallEnd | HookTransformCallStart | HookTransformCallEnd)) & { event_id: string }
1212

13-
const DURATION_THRESHOLD = 10
1413
const MODULE_BUILD_START_HOOKS = ['HookResolveIdCallStart', 'HookLoadCallStart', 'HookTransformCallStart']
1514
const 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,

0 commit comments

Comments
 (0)