@azimutlabs/rollup-config-typescript
v1.0.1
Published
Rollup configuration for TypeScript
Downloads
18
Readme
Installation
Add peer dependencies:
$ yarn add -D rollup typescript
...then install config packages:
$ yarn add -D @azimutlabs/rollup-{config,config-typescript}
Usage
// rollup.config.js
import typescript from '@azimutlabs/rollup-config-typescript';
export default typescript(
// Output format. Defaults to 'es'
'cjs',
{
// Optional RollupOptions that will be merged with configuration options.
shimMissingExports: true,
// Optional RollupConfigPlugins<P> object that will be merged with
// configuration plugins.
pluginBuilders: {
// Merge with default '@rollup/plugin-typescript' plugin options.
typescript: {
tsconfig: false,
},
},
}
);
Contributing
Any PR is welcomed by our @js-opensource team. Check out our contributing guidelines for more info.