only rewrite `require`s for relatively linked modules
self instead of this