mkwtys/bundle-size

View on GitHub

Showing 3 of 7 total issues

Function exports has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = (packages, options) => {
  const results = [];
  let envs = [];

  if (options && options.env) {
Severity: Minor
Found in lib/index.js - About 1 hr to fix

    Function exports has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = (packages, env) => {
      const files = Array.isArray(packages) ? packages : [packages];
      let data = '';
      let pkgIds = files.slice();
    
    
    Severity: Minor
    Found in lib/bundle-bytes.js - About 1 hr to fix

      Function exports has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = (data) => {
        if (!data) {
          throw new Error('no data');
        }
      
      
      Severity: Minor
      Found in lib/reporter.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language