npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@locker/rollup-plugin

0.26.2

@mjasso

npmSnykSocket
Downloads:126
$ npm install @locker/rollup-plugin
DailyWeeklyMonthlyYearly

Locker Rollup Plugin

Lightning Web Security Rollup Plugin

Installation

yarn add --dev @locker/rollup-plugin

Usage

// rollup.config.js
import lockerPlugin from '@locker/rollup-plugin';

export default {
    input: './src/main.js',
    plugins: [lockerPlugin()],
};

Options

include and exclude

Type: string | regexp | Array<string|regexp> (optional)

A valid picomatch pattern, or array of patterns. If options.include is omitted or has zero length, filter will return true by default. Otherwise, an ID must match one or more of the picomatch patterns, and must not match any of the options.exclude patterns.

Note that picomatch patterns are very similar to minimatch patterns, and in most use cases, they are interchangeable. If you have more specific pattern matching needs, you can view this comparison table to learn more about where the libraries differ.