Svelte rollup preprocessor for Pug
// rollup.config.js
import svelte from 'rollup-plugin-svelte';
import pugConverter from '../where_plugin_placed.js';
...
export default {
...
plugins: [
...
svelte({
preprocess: {
markup: pugConverter(),
},
}),
],
};
Using in .svelte
<template lang="pug">
.wrapper
h1 {Hello}
</template>