this is your onTransform hook function that gets called,
if the handler associated with it allows a certain result from an onLoad hook to pass through its filter (OnTransformOptions).
if your return value is nullable (null or undefined), then the next matching onTransform hook function will try to transform the incoming loaded contents.
if no transformation hook returns a non-nullable after all matches have been made,
then the loaded contents from the onLoad hook will be passed to esbuild as is.
this is your
onTransformhook function that gets called, if the handler associated with it allows a certain result from anonLoadhook to pass through its filter (OnTransformOptions).if your return value is nullable (
nullorundefined), then the next matchingonTransformhook function will try to transform the incoming loaded contents. if no transformation hook returns a non-nullable after all matches have been made, then the loaded contents from theonLoadhook will be passed to esbuild as is.