pundle-plugin-helpers

1.1.3 • Public • Published

Pundle-Plugin-Helpers

This module is a collection of helpers for your Pundle Loaders and Plugins.

Example Usage

import * as Helpers from 'pundle-plugin-helpers'
// TODO: Write the rest of it

API

type Rule = string | RegExp
type Config = {
  include?: Rule | Array<Rule>,
  exclude?: Rule | Array<Rule>,
  extensions: Array<string>,
}

export function matchesRules(sourceRoot: string, filePath: string, rules: Array<Rule>, exclude: boolean = true): boolean;
export function shouldProcess(sourceRoot: string, filePath: string, config: Config): boolean;

License

This project is licensed under the terms of MIT License. See the root of the github repo for more info.

Readme

Keywords

none

Package Sidebar

Install

npm i pundle-plugin-helpers

Weekly Downloads

0

Version

1.1.3

License

MIT

Last publish

Collaborators

  • steelbrain