Open
Description
Hello!
Is there any plan to support assets bundling using the URL constructor and import.meta?
Something like this:
const myImg = new URL('./assets/my-img.png', import.meta.url);
would be equivalent to:
import myImg from './assets/my-img.png';
but with native browser support.
This is how we can do that with rollup https://modern-web.dev/docs/building/rollup-plugin-import-meta-assets/. I think it could fit with the "convention over configuration" policy of esbuild.