mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:11:49 +08:00
18 lines
346 B
Plaintext
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)],
|
|
},
|
|
},
|
|
],
|
|
};
|
|
``` |