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.location.hash = '';
window._svelteTransitionManager = null; window._svelteTransitionManager = null;
window.component = new SvelteComponent({ window.component = new SvelteComponent.default({
target: document.body target: document.body
}); });
`); `);

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

Loading…
Cancel
Save