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.
 
 
 
 

25 lines
530 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 = './lib/index.ts'
  6. export default [
  7. {
  8. input: ENTRY_POINT,
  9. output: {
  10. dir: pkg.directories.lib,
  11. format: 'cjs',
  12. },
  13. plugins: [
  14. peerDepsExternal({
  15. includeDependencies: true,
  16. }),
  17. typescript(),
  18. process.env.NODE_ENV === 'production' && terser(),
  19. ],
  20. },
  21. ]