Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
NeonFlicker.svelte
<script>
import NeonFlicker from "./NeonFlicker.svelte"
</script>
<style>
.container {
display:block;
height:100vh;
width:100vw;
background: black;
color:white;
}
p {
padding:0px 40px;
}
</style>
<div class="container">
<NeonFlicker text="<cy83rnetic/>"/>
<p >
It's the year 2022. Cybernetically enhanced web apps have taken over the world.
</p>
</div>

Error compiling component

WebAssembly.instantiateStreaming(): value type opcode @+13
/* App.svelte generated by Svelte v3.49.0 */
import {
SvelteComponent,
append,
append_styles,
attr,
create_component,
destroy_component,
detach,
element,
init,
insert,
mount_component,
noop,
safe_not_equal,
space,
transition_in,
transition_out
} from "svelte/internal";

import NeonFlicker from "./NeonFlicker.svelte";

function add_css(target) {
append_styles(target, "svelte-4osrrh", ".container.svelte-4osrrh{display:block;height:100vh;width:100vw;background:black;color:white}p.svelte-4osrrh{padding:0px 40px}");
}

function create_fragment(ctx) {
let div;
let neonflicker;
let t0;
let p;
let current;
neonflicker = new NeonFlicker({ props: { text: "<cy83rnetic/>" } });

return {
c() {
result = svelte.compile(source, {
generate: ,
});
.container.svelte-4osrrh{display:block;height:100vh;width:100vw;background:black;color:white}p.svelte-4osrrh{padding:0px 40px}
		
			
				
  • {
    • html: Fragment {...}
      • start: 69
      • end: 384
      • type: "Fragment"
      • children: [...] (3)
        • Text {...}
          • start: 68
          • end: 69
          • type: "Text"
          • raw: "\n"
          • data: "\n"
          }
        • Text {...}
          • start: 217
          • end: 222
          • type: "Text"
          • raw: "\n \n"
          • data: "\n \n"
          }
        • Element {...}
          • start: 222
          • end: 384
          • type: "Element"
          • name: "div"
          • attributes: [...] (1)
            • Attribute {...}
              • start: 227
              • end: 244
              • type: "Attribute"
              • name: "class"
              • value: [...] (1)
                • Text {...}
                  • start: 234
                  • end: 243
                  • type: "Text"
                  • raw: "container"
                  • data: "container"
                  }
                ]
              }
            ]
          • children: [...] (5)
            • Text {...}
              • start: 245
              • end: 247
              • type: "Text"
              • raw: "\n\t"
              • data: "\n\t"
              }
            • InlineComponent {...}
              • start: 247
              • end: 282
              • type: "InlineComponent"
              • name: "NeonFlicker"
              • attributes: [...] (1)
                • Attribute {...}
                  • start: 260
                  • end: 280
                  • type: "Attribute"
                  • name: "text"
                  • value: [...] (1)
                    • Text {...}
                      • start: 266
                      • end: 279
                      • type: "Text"
                      • raw: "<cy83rnetic/>"
                      • data: "<cy83rnetic/>"
                      }
                    ]
                  }
                ]
              • children: []
              }
            • Text {...}
              • start: 282
              • end: 284
              • type: "Text"
              • raw: "\n\t"
              • data: "\n\t"
              }
            • Element {...}
              • start: 284
              • end: 377
              • type: "Element"
              • name: "p"
              • attributes: []
              • children: [...] (1)
                • Text {...}
                  • start: 288
                  • end: 373
                  • type: "Text"
                  • raw: "\n\t\tIt's the year 2022. Cybernetically enhanced web apps have taken over the world.\n\t"
                  • data: "\n\t\tIt's the year 2022. Cybernetically enhanced web apps have taken over the world.\n\t"
                  }
                ]
              }
            • Text {...}
              • start: 377
              • end: 378
              • type: "Text"
              • raw: "\n"
              • data: "\n"
              }
            ]
          }
        ]
      }
    • css: Style {...}
      • type: "Style"
      • start: 69
      • end: 217
      • attributes: []
      • children: [...] (2)
        • Rule {...}
          • type: "Rule"
          • prelude: SelectorList {...}
            • type: "SelectorList"
            • children: [...] (1)
              • Selector {...}
                • type: "Selector"
                • children: [...] (1)
                  • ClassSelector {...}
                    • type: "ClassSelector"
                    • name: "container"
                    • start: 78
                    • end: 88
                    }
                  ]
                • start: 78
                • end: 88
                }
              ]
            • start: 78
            • end: 88
            }
          • block: Block {...}
            • type: "Block"
            • children: [...] (5)
              • Declaration {...}
                • type: "Declaration"
                • important: false
                • property: "display"
                • value: Value {...}
                  • type: "Value"
                  • children: [...] (1)
                    • Identifier {...}
                      • type: "Identifier"
                      • name: "block"
                      • start: 101
                      • end: 106
                      }
                    ]
                  • start: 101
                  • end: 106
                  }
                • start: 93
                • end: 106
                }
              • Declaration {...}
                • type: "Declaration"
                • important: false
                • property: "height"
                • value: Value {...}
                  • type: "Value"
                  • children: [...] (1)
                    • Dimension {...}
                      • type: "Dimension"
                      • value: "100"
                      • unit: "vh"
                      • start: 117
                      • end: 122
                      }
                    ]
                  • start: 117
                  • end: 122
                  }
                • start: 110
                • end: 122
                }
              • Declaration {...}
                • type: "Declaration"
                • important: false
                • property: "width"
                • value: Value {...}
                  • type: "Value"
                  • children: [...] (1)
                    • Dimension {...}
                      • type: "Dimension"
                      • value: "100"
                      • unit: "vw"
                      • start: 132
                      • end: 137
                      }
                    ]
                  • start: 132
                  • end: 137
                  }
                • start: 126
                • end: 137
                }
              • Declaration {...}
                • type: "Declaration"
                • important: false
                • property: "background"
                • value: Value {...}
                  • type: "Value"
                  • children: [...] (1)
                    • Identifier {...}
                      • type: "Identifier"
                      • name: "black"
                      • start: 153
                      • end: 158
                      }
                    ]
                  • start: 153
                  • end: 158
                  }
                • start: 141
                • end: 158
                }
              • Declaration {...}
                • type: "Declaration"
                • important: false
                • property: "color"
                • value: Value {...}
                  • type: "Value"
                  • children: [...] (1)
                    • Identifier {...}
                      • type: "Identifier"
                      • name: "white"
                      • start: 168
                      • end: 173
                      }
                    ]
                  • start: 168
                  • end: 173
                  }
                • start: 162
                • end: 173
                }
              ]
            • start: 89
            • end: 177
            }
          • start: 78
          • end: 177
          }
        • Rule {...}
          • type: "Rule"
          • prelude: SelectorList {...}
            • type: "SelectorList"
            • children: [...] (1)
              • Selector {...}
                • type: "Selector"
                • children: [...] (1)
                  • TypeSelector {...}
                    • type: "TypeSelector"
                    • name: "p"
                    • start: 179
                    • end: 180
                    }
                  ]
                • start: 179
                • end: 180
                }
              ]
            • start: 179
            • end: 180
            }
          • block: Block {...}
            • type: "Block"
            • children: [...] (1)
              • Declaration {...}
                • type: "Declaration"
                • important: false
                • property: "padding"
                • value: Value {...}
                  • type: "Value"
                  • children: [...] (3)
                    • Dimension {...}
                      • type: "Dimension"
                      • value: "0"
                      • unit: "px"
                      • start: 196
                      • end: 199
                      }
                    • WhiteSpace {...}
                      • type: "WhiteSpace"
                      • loc: null
                      • value: " "
                      }
                    • Dimension {...}
                      • type: "Dimension"
                      • value: "40"
                      • unit: "px"
                      • start: 200
                      • end: 204
                      }
                    ]
                  • start: 196
                  • end: 204
                  }
                • start: 188
                • end: 204
                }
              ]
            • start: 181
            • end: 208
            }
          • start: 179
          • end: 208
          }
        ]
      • content: {...}
        • start: 76
        • end: 209
        • styles: "\n\t.container {\n\t\tdisplay:block;\n\t\theight:100vh;\n\t\twidth:100vw;\n\t\tbackground: black;\n\t\tcolor:white;\n\t}\n\tp {\n\t\t\n\t\tpadding:0px 40px;\n\t}\n"
        }
      }
    • instance: Script {...}
      • type: "Script"
      • start: 0
      • end: 68
      • context: "default"
      • content: Program {...}
        • type: "Program"
        • start: 8
        • end: 59
        • loc: {...}
          • start: {...}
            • line: 1
            • column: 0
            }
          • end: {...}
            • line: 4
            • column: 0
            }
          }
        • body: [...] (1)
          • ImportDeclaration {...}
            • type: "ImportDeclaration"
            • start: 10
            • end: 56
            • loc: {...}
              • start: {...}
                • line: 2
                • column: 1
                }
              • end: {...}
                • line: 2
                • column: 47
                }
              }
            • specifiers: [...] (1)
              • ImportDefaultSpecifier {...}
                • type: "ImportDefaultSpecifier"
                • start: 17
                • end: 28
                • loc: {...}
                  • start: {...}
                    • line: 2
                    • column: 8
                    }
                  • end: {...}
                    • line: 2
                    • column: 19
                    }
                  }
                • local: Identifier {...}
                  • type: "Identifier"
                  • start: 17
                  • end: 28
                  • loc: {...}
                    • start: {...}
                      • line: 2
                      • column: 8
                      }
                    • end: {...}
                      • line: 2
                      • column: 19
                      }
                    }
                  • name: "NeonFlicker"
                  }
                }
              ]
            • source: Literal {...}
              • type: "Literal"
              • start: 34
              • end: 56
              • loc: {...}
                • start: {...}
                  • line: 2
                  • column: 25
                  }
                • end: {...}
                  • line: 2
                  • column: 47
                  }
                }
              • value: "./NeonFlicker.svelte"
              • raw: "\"./NeonFlicker.svelte\""
              }
            }
          ]
        • sourceType: "module"
        }
      }
    • module: undefined
    }
The AST is not public API and may change at any point in time