An issue filed in Bun I find interesting, Bun runtime plugin onResolve doesn't filter non-file: protocol imports #9863.
The gist is handling Ecmascript static import
and dynamic import()
that are arbitrary specifiers and setting arbitrary content. Something like
import demo1 from '1.demo';
console.log('demo 1', demo1);
import demo2 from 'demo:2';