rollup-plugin-auto-exports
v1.0.8
Published
> only for ts at the moment
Downloads
24
Readme
rollup-plugin-auto-exports
only for ts at the moment
install
npm i rollup-plugin-auto-exports
usage
import autoExports from 'rollup-plugin-auto-exports'
...
input,
output: {
format: 'es',
dir: 'exports
},
plugins: [
autoExports({
//optional
defaultExports: {
'.': {
import: './exports/custom-elements.js',
types: './exports/custom-elements.d.ts'
}
},
// output.dir override, default to exports
exportsDir: 'exports'
})
]
...
api
autoExports
glob
default
'exports/**/*d.ts'
explainer
uses .d.ts files located in the desired build dir if no glob is given