SystemJS plugin for compiling Svelte components
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
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>