@locker/rollup-plugin
v0.26.2
Published
Lightning Web Security Rollup Plugin
Keywords
Readme
Locker Rollup Plugin
Lightning Web Security Rollup Plugin
Installation
yarn add --dev @locker/rollup-pluginUsage
// 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.
