Configure inside your webpack.config.js
:
...
module: {
rules: [
...
{
test: /\.(html|svelte)$/,
exclude: /node_modules/,
use: 'svelte-loader'
}
...
]
}
...
Checkout example setup.
MIT