A rollup plugin for matching files.
npm install rollup-plugin-match --save-dev
rollup.config.js
const match = require('rollup-plugin-match');
const empty = require('rollup-plugin-empty');
module.exports = {
input: 'src/*.js',
plugins: [
empty({
silent: false,
dir: 'dist/es'
}),
match(),
],
output: {
dir: 'dist/es',
format: 'es'
}
};
See the fast-glob options