npm i svelte-component-budget --save-devyarn add svelte-component-budgetimport componentBudget from 'svelte-component-budget';
module.exports = {
compilerOptions: {
...
},
preprocess: [
componentBudget(),
]
};budget- line of code budget for Svelte components (default: 200).include- array of regexps to match with filenames (default: []).exclude- array of regexps to match with filenames (default: []).
MIT © PaulMaly