Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

next.config.js 660 B

12345678910111213141516171819202122232425262728293031
  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. trailingSlash: true,
  16. webpack(...args) {
  17. const oldWebpack = e.webpack(...args)
  18. const [config, { defaultLoaders, }] = args
  19. config.module.rules.push({
  20. test: /\.(ts|tsx)$/,
  21. include: [path.resolve(__dirname, '../react-common/')],
  22. use: [defaultLoaders.babel],
  23. })
  24. return oldWebpack
  25. }
  26. }