presets.js 371 B

12345678910111213141516171819
  1. const path = require('path');
  2. module.exports = [
  3. {
  4. name: '@storybook/preset-create-react-app',
  5. options: {
  6. tsDocgenLoaderOptions: {
  7. tsconfigPath: path.resolve(__dirname, '../tsconfig.json'),
  8. },
  9. },
  10. },
  11. {
  12. name: '@storybook/addon-docs/preset',
  13. options: {
  14. configureJSX: true,
  15. sourceLoaderOptions: null,
  16. },
  17. },
  18. ];