You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/js/samples/non-imported-component/expected.js

61 lines
1.2 KiB

/* generated by Svelte vX.Y.Z */
import { SvelteComponent as SvelteComponent_1, createText, detachNode, identity, init, insert, mount_component, noop, safe_not_equal } from "svelte/internal";
import Imported from "Imported.html";
7 years ago
6 years ago
function create_fragment($$, ctx) {
var text, current;
var imported = new Imported({});
var nonimported = new NonImported({});
return {
7 years ago
c() {
imported.$$.fragment.c();
text = createText("\n");
nonimported.$$.fragment.c();
},
7 years ago
m(target, anchor) {
mount_component(imported, target, anchor);
insert(target, text, anchor);
mount_component(nonimported, target, anchor);
},
p: noop,
i() {
if (current) return;
imported.$$.fragment.i();
nonimported.$$.fragment.i();
current = true;
},
o() {
if (imported) imported.$$.fragment.o();
if (nonimported) nonimported.$$.fragment.o();
current = false;
},
7 years ago
d(detach) {
imported.$destroy(detach);
7 years ago
if (detach) {
detachNode(text);
}
nonimported.$destroy(detach);
}
};
}
7 years ago
class SvelteComponent extends SvelteComponent_1 {
constructor(options) {
super();
init(this, options, identity, create_fragment, safe_not_equal);
7 years ago
}
}
export default SvelteComponent;