Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

31 wiersze
637 B

  1. const path = require('path')
  2. const withMDX = require('next-mdx-frontmatter')({
  3. extension: /\.mdx?$/
  4. })
  5. const e = withMDX({
  6. pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx']
  7. })
  8. module.exports = {
  9. ...e,
  10. typescript: {
  11. ignoreBuildErrors: true,
  12. },
  13. poweredByHeader: false,
  14. basePath: '/tesseract/web/react/common',
  15. webpack(...args) {
  16. const oldWebpack = e.webpack(...args)
  17. const [config, { defaultLoaders, }] = args
  18. config.module.rules.push({
  19. test: /\.(ts|tsx)$/,
  20. include: [path.resolve(__dirname, '../react-common/')],
  21. use: [defaultLoaders.babel],
  22. })
  23. return oldWebpack
  24. }
  25. }