How to use rollup-pluginutils

Comprehensive rollup-pluginutils code examples:

How to use rollup-pluginutils.attachScopes:

541
542
543
544
545
546
547
548
549
550
    // Parser errors just skip analysis
    return this.callback(null, code, map);
  }
}

let scope = attachScopes(ast, 'scope');

let transformed = false;

const importMetaUrl = pathToFileURL(id).href;

How to use rollup-pluginutils.createFilter:

899
900
901
902
903
904
905
906
907
908
909
  return result
}
/* eslint import/no-anonymous-default-export: [2, {"allowArrowFunction": true}] */


var index = (options = {}) => {
  const filter = rollupPluginutils.createFilter(
    options.include,
    options.exclude
  )
  const postcssPlugins = Array.isArray(options.plugins)