Can esbuild bundle in fetch call responses?

I may be missing it in the docs, but is it possible for esbuild to replace code like this:

const response = await fetch(`./some/local/file`);
const fileContent = await response.text();

by just putting the file content "whatever it is when esbuild runs" as hardcoded string in the bundle?