mirror of https://github.com/sveltejs/svelte
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.
47 lines
884 B
47 lines
884 B
6 years ago
|
/* generated by Svelte vX.Y.Z */
|
||
|
import { SvelteComponent as SvelteComponent_1, append, createElement, createText, detachNode, init, insert, noop, run, safe_not_equal } from "svelte/internal";
|
||
|
|
||
|
function create_fragment(component, ctx) {
|
||
|
var b, text_value = get_answer(), text, current;
|
||
|
|
||
|
return {
|
||
|
c() {
|
||
|
b = createElement("b");
|
||
|
text = createText(text_value);
|
||
|
},
|
||
|
|
||
|
m(target, anchor) {
|
||
|
insert(target, b, anchor);
|
||
|
append(b, text);
|
||
|
current = true;
|
||
|
},
|
||
|
|
||
|
p: noop,
|
||
|
|
||
|
i(target, anchor) {
|
||
|
if (current) return;
|
||
|
this.m(target, anchor);
|
||
|
},
|
||
|
|
||
|
o: run,
|
||
|
|
||
|
d(detach) {
|
||
|
if (detach) {
|
||
|
detachNode(b);
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
const ANSWER = 42;
|
||
|
|
||
|
function get_answer() { return ANSWER; }
|
||
|
|
||
|
class SvelteComponent extends SvelteComponent_1 {
|
||
|
constructor(options) {
|
||
|
super();
|
||
|
init(this, options, noop, create_fragment, safe_not_equal);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default SvelteComponent;
|