Tweak dynamic imports to work in browser.