storybook/docs/snippets/common/storybook-preset-configuration.js.mdx
2020-08-11 01:11:41 +01:00

18 lines
346 B
Plaintext

```js
// .storybook/typescript-preset.js
const path = require('path');
module.exports = {
addons: [
{
name: '@storybook/preset-typescript',
options: {
tsLoaderOptions: {
configFile: path.resolve(__dirname, '../tsconfig.json'),
},
include: [path.resolve(__dirname)],
},
},
],
};
```