<script> import { onMount } from 'svelte'; onMount(() => { import('./foo.js').then(foo => { console.log(foo.default); }); }); </script>