intercom-react
Version:
An Intercom component for React.
35 lines (33 loc) • 686 B
JavaScript
/* eslint-disable import/no-extraneous-dependencies */
import rollupTypescript from 'rollup-plugin-typescript2';
import typescript from 'typescript';
import postcss from 'rollup-plugin-postcss';
import {
main as mainPath,
module as modulePath,
dependencies,
} from './package.json';
export default {
input: 'src/index.ts',
output: [
{
file: mainPath,
format: 'cjs',
},
{
file: modulePath,
format: 'es',
},
],
external: [...Object.keys(dependencies || {})],
plugins: [
rollupTypescript({
tsconfig: './tsconfig.json',
typescript,
}),
postcss({
modules: true,
namedExports: true,
}),
],
};