Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 line
540 B

  1. import peerDepsExternal from 'rollup-plugin-peer-deps-external'
  2. import { terser, } from 'rollup-plugin-terser'
  3. import typescript from '@rollup/plugin-typescript'
  4. import pkg from './package.json'
  5. const ENTRY_POINT = './packages/react-common/src/index.ts'
  6. export default {
  7. input: ENTRY_POINT,
  8. output: {
  9. dir: pkg.directories.lib,
  10. format: 'cjs',
  11. sourcemap: true,
  12. },
  13. plugins: [
  14. peerDepsExternal({
  15. includeDependencies: true,
  16. }),
  17. typescript(),
  18. process.env.NODE_ENV === 'production' && terser(),
  19. ],
  20. }