You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The middleware is really slow, because getResource and resolveModule are called for every request to /resources/.
In my case profiling and network monitor show that even simple requests to /resources/sap/... take more than 20x as long as without the middleware (~450ms per file compared to ~15ms per file without).
Describe the solution you'd like
Regex to skip middleware execution early, preferably right after the initial match for /resources/.
Similar to how shouldSkipTransform is implemented currently, I would love to just provide a bunch of glob patterns that are excluded, something akin to:
excludes:
- "sap/**"
- "my/namespace/**"
I have tried this manually and had the desired result with immense speedup.
Describe alternatives you've considered
Additional context
I dont know if this has any side effects or if there is maybe some other option that can be configured already
The text was updated successfully, but these errors were encountered:
Good idea! I try to also continuously improve the performance of the middleware since it is critical for development - but this seems to be an easy and pragmatic idea to exclude resources you know about. Maybe we can also define a kind of a default...
Is your feature request related to a problem? Please describe.
The middleware is really slow, because getResource and resolveModule are called for every request to /resources/.
In my case profiling and network monitor show that even simple requests to /resources/sap/... take more than 20x as long as without the middleware (~450ms per file compared to ~15ms per file without).
Describe the solution you'd like
Regex to skip middleware execution early, preferably right after the initial match for /resources/.
Similar to how shouldSkipTransform is implemented currently, I would love to just provide a bunch of glob patterns that are excluded, something akin to:
I have tried this manually and had the desired result with immense speedup.
Describe alternatives you've considered
Additional context
I dont know if this has any side effects or if there is maybe some other option that can be configured already
The text was updated successfully, but these errors were encountered: