4
Hello world • Svelte Examples
source link: https://svelte.dev/examples#hello-world
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
bundling https://unpkg.com/svelte@3/internal/index.mjs
xxxxxxxxxx
/* App.svelte generated by Svelte v3.42.1 */
import {
SvelteComponent,
detach,
element,
init,
insert,
noop,
safe_not_equal
} from "svelte/internal";
function create_fragment(ctx) {
let h1;
return {
c() {
h1 = element("h1");
h1.textContent = `Hello ${name}!`;
},
Compiler options
result = svelte.compile(source, {
generate: "dom" "ssr",
dev: false, css: false, hydratable: false, customElement: false, immutable: false, legacy: false
});xxxxxxxxxx
/* Add a <style> tag to see compiled CSS */
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK