x/packup/examples/with-imports/js/script.js
123456import { foo } from "./foo.js";window.addEventListener("DOMContentLoaded", () => { foo();});