0.1.2 • Published 7 years ago

system-svelte v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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>
0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago