Preprocessing scripts for svelte
npm i @ctx-core/svelte-preprocess
// rollup.config.js
import { proprocess_ } from '@ctx-core/svelte/node'
const preprocess = proprocess_([
// preprocess object 1,
// preprocess object 2,
])
export default {
client: {
//...
plugins: [
// ...
svelte({
// ...
preprocess,
}),
// ...
],
// ...
},
server: {
//...
plugins: [
// ...
svelte({
// ...
preprocess,
}),
// ...
],
// ...
},
serviceworker: {
// ...
},
}