Generate declaration typings with glob support This plugin is extended from typed-css-modules plugin.
# yarn
yarn add rollup-plugin-typed-css-modules --dev
# npm
npm i rollup-plugin-typed-css-modules --save-dev
// rollup.config.js
import dts from 'rollup-plugin-typed-css-modules';
export default {
input: 'src/index.js',
output: {
file: 'dist/app.js',
format: 'cjs'
},
plugins: [dts()]
};
There are some useful options:
interface RunOptions {
pattern?: string;
outDir?: string;
watch?: boolean;
camelCase?: boolean;
namedExports?: boolean;
dropExtension?: boolean;
silent?: boolean;
listDifferent?: boolean;
}
MIT