UNPKG

react-doc-viewer-plus

Version:

A powerful document viewer component for React that supports various file formats including images, PDF, Office documents, OFD files and videos

30 lines (28 loc) 653 B
import typescript from '@rollup/plugin-typescript'; import commonjs from '@rollup/plugin-commonjs'; import resolve from '@rollup/plugin-node-resolve'; import peerDepsExternal from 'rollup-plugin-peer-deps-external'; export default { input: 'src/index.ts', output: [ { file: 'dist/index.js', format: 'cjs', sourcemap: true, }, { file: 'dist/index.esm.js', format: 'esm', sourcemap: true, }, ], plugins: [ peerDepsExternal(), resolve(), commonjs(), typescript({ tsconfig: './tsconfig.json', }), ], external: ['react', 'react-dom', 'antd', '@ant-design/icons'], };