1.0.3 • Published 1 year ago
import-svelte v1.0.3
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
})