npm i svelte-component-budget --save-dev
yarn add svelte-component-budget
import 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