a plugin that replicates esbuild's native resource/path resolution and loading behavior through the plugin api layer.
for resolving paths, the plugin creates a sub-build that is free of any contaminating plugins to get esbuild to resolve the input resource naturally.
for loading content, the plugin places an onLoad hook to capture all file-namespace paths,
and then mimics esbuild's native loading behavior by guessing the loader it would use,
and then fetches the content (without invoking esbuild's native loading in the process).
a plugin that replicates esbuild's native resource/path resolution and loading behavior through the plugin api layer.
onLoadhook to capture all file-namespace paths, and then mimics esbuild's native loading behavior by guessing the loader it would use, and thenfetches the content (without invoking esbuild's native loading in the process).