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
👋
I am investigating slow starts for our app and we discovered that require calls are quite slow for some dependencies (due to size or side-effect on import).
I would like to instrument those require calls automatically, and this package seems the proper way to do it without breaking babel/swc register feature. Would it be possible to add a way to execute some code before/after a require?
I can contribute this feature if you point me to the proper way to do it so the PR gets accepted easily :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
👋
I am investigating slow starts for our app and we discovered that
require
calls are quite slow for some dependencies (due to size or side-effect on import).I would like to instrument those
require
calls automatically, and this package seems the proper way to do it without breaking babel/swc register feature. Would it be possible to add a way to execute some code before/after a require?I can contribute this feature if you point me to the proper way to do it so the PR gets accepted easily :)
Beta Was this translation helpful? Give feedback.
All reactions