CanopyTax / system-svelte

SystemJS plugin for compiling Svelte components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

system-svelte

SystemJS plugin for compiling Svelte components

Installation

jspm install sv=npm:system-svelte
jspm install npm:svelte -o "{format: 'global'}"
# The second command is necessary because SystemJS gets confused
# about svelte's module format, this overrides it to be global

Usage

index.js

import App from './app.component.html!sv';

const app = new App({
	target: document.querySelector('#app'),
	data: {
		name: 'sweet dawg!!',
	}
});

app.component.html

<h1>Hello {{name}}</h1>

About

SystemJS plugin for compiling Svelte components

License:MIT License


Languages

Language:JavaScript 100.0%