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-mutable-reference/expected.js

43 lines
830 B

/* generated by Svelte vX.Y.Z */
import { SvelteComponent as SvelteComponent_1, append, createElement, createText, detachNode, init, insert, noop, safe_not_equal } from "svelte/internal";
function create_fragment(ctx) {
var h1, text0, text1, text2;
return {
c() {
h1 = createElement("h1");
text0 = createText("Hello ");
text1 = createText(name);
text2 = createText("!");
},
m(target, anchor) {
insert(target, h1, anchor);
append(h1, text0);
append(h1, text1);
append(h1, text2);
},
p: noop,
i: noop,
o: noop,
d(detach) {
if (detach) {
detachNode(h1);
}
}
};
}
let name = 'world';
class SvelteComponent extends SvelteComponent_1 {
constructor(options) {
super();
6 years ago
init(this, options, null, create_fragment, safe_not_equal, []);
}
}
export default SvelteComponent;