Closed 3mcd closed 1 year ago
The createFilter function from @rollup/pluginutils uses minimatch under the hood. minimatch.match supports both a string and an array of patterns thus we should accept both in the plugin's include and exclude options, e.g:
createFilter
@rollup/pluginutils
minimatch.match
include
exclude
{ plugins: [ thyseus({ include: ['./example/**', './src/**'], }), ] }
See also: https://rollupjs.org/plugin-development/#transformers
Nice catch, thank you!
The
createFilter
function from@rollup/pluginutils
uses minimatch under the hood.minimatch.match
supports both a string and an array of patterns thus we should accept both in the plugin'sinclude
andexclude
options, e.g:See also: https://rollupjs.org/plugin-development/#transformers