1.1.0 • Published 2 years ago

svelte-component-budget v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

SvelteJS preprocessor to control component's size (loc).

NPM version NPM downloads

Install

npm i svelte-component-budget --save-dev
yarn add svelte-component-budget

Usage

import componentBudget from 'svelte-component-budget';

module.exports = {
    compilerOptions: {
     ...
    },
    preprocess: [
        componentBudget(),
    ]
};

Options

  • 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: []).

License

MIT © PaulMaly