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/component-static-immutable2/expected.js

51 lines
863 B

7 years ago
/* generated by Svelte vX.Y.Z */
import { SvelteComponent as SvelteComponent_1, init, mount_component, noop, not_equal } from "svelte/internal";
7 years ago
function create_fragment(ctx) {
var current;
7 years ago
var nested = new ctx.Nested({ props: { foo: "bar" } });
7 years ago
return {
6 years ago
c() {
nested.$$.fragment.c();
7 years ago
},
6 years ago
m(target, anchor) {
mount_component(nested, target, anchor);
7 years ago
},
p: noop,
i() {
if (current) return;
nested.$$.fragment.i();
current = true;
},
o() {
if (nested) nested.$$.fragment.o();
current = false;
},
6 years ago
d(detach) {
nested.$destroy(detach);
7 years ago
}
};
}
function instance($$self) {
const Nested = window.Nested;
7 years ago
return { Nested };
}
7 years ago
class SvelteComponent extends SvelteComponent_1 {
constructor(options) {
super();
init(this, options, instance, create_fragment, not_equal);
7 years ago
}
}
export default SvelteComponent;