repl: deal with named module exports from main App

pull/2229/head
Conduitry 6 years ago
parent 863eff9516
commit 66e2905066

@ -76,7 +76,7 @@
window.location.hash = '';
window._svelteTransitionManager = null;
window.component = new SvelteComponent({
window.component = new SvelteComponent.default({
target: document.body
});
`);

@ -174,6 +174,7 @@ async function bundle(components) {
import_map.set(id, name);
return name;
},
exports: 'named',
sourcemap: true
});
@ -197,6 +198,7 @@ async function bundle(components) {
format: 'iife',
name: 'SvelteComponent',
globals: id => import_map.get(id),
exports: 'named',
sourcemap: true
})
: null;

Loading…
Cancel
Save