import-svelte
v1.0.3
Published
Require and transpile Svelte on the fly
Downloads
4
Readme
Install
npm install import-svelte
Usage
const importSvelte = require('import-svelte');
const modulePath = path.resolve(__dirname, './App.svelte')
const App = importSvelte(modulePath)
const inst = new App({
target: document.body // use domjs
})