Package Exports
- rollup-plugin-lost
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-lost) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rollup-plugin-zip
Rollup plugin to list lost (unused) files in the project directory.
Lost files are listed in the stderr.
Install
npm i -D rollup-plugin-lost
Usage
Source files
// src/index.js
import usedMod from './used'
console.log(usedMod)
// src/used.js
export default 'used-module'
// src/lost.js
export default 'lost-module'
Configuration
// rollup.config.js
import lost from 'rollup-plugin-lost'
export default {
input: 'src/index.js',
output: {
dir: 'dist',
format: 'es',
},
plugins: [
lost(),
],
}
Output
Lost files:
test/lost.js
Options
include
Type
string | RegExp | (string | RegExp)[] | null | undefined
Default
'src/**/*'
Patterns to search for lost files.
exclude
Type
string | RegExp | (string | RegExp)[] | null | undefined
Optional patterns to exclude from search for lost files.