The present situation includes the utilization of rollup (as well as iife parameters), but I am hesitant about whether it is solely related to rollup or typescript.
My objective is to achieve something similar to this:
import { document } from "[wherever dom resides]";