Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

39 行
788 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. file: pkg.main,
  11. format: 'cjs',
  12. },
  13. plugins: [
  14. peerDepsExternal({
  15. includeDependencies: true,
  16. }),
  17. typescript(),
  18. process.env.NODE_ENV === 'production' && terser(),
  19. ],
  20. },
  21. {
  22. input: ENTRY_POINT,
  23. output: {
  24. file: pkg.module,
  25. format: 'esm',
  26. },
  27. plugins: [
  28. peerDepsExternal({
  29. includeDependencies: true,
  30. }),
  31. typescript(),
  32. process.env.NODE_ENV === 'production' && terser(),
  33. ],
  34. },
  35. ]