@locker/rollup-plugin
v0.22.7
Published
Lightning Web Security Rollup Plugin
Downloads
1,708
Keywords
Readme
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.