Add TypeScript file extensions to Storybook config (#7163)

GitOrigin-RevId: f070c8555d570bfdf02958bfbb241def8cacb263
This commit is contained in:
Alf Eaton 2022-03-22 10:18:48 +00:00 committed by Copybot
parent dfa3178034
commit 7f4934d619

View file

@ -12,8 +12,8 @@ const customConfig = require('../webpack.config.dev')
module.exports = { module.exports = {
staticDirs: ['../public'], staticDirs: ['../public'],
stories: [ stories: [
'../frontend/stories/**/*.stories.js', '../frontend/stories/**/*.stories.{js,ts,tsx}',
'../modules/**/stories/**/*.stories.js', '../modules/**/stories/**/*.stories.{js,ts,tsx}',
], ],
addons: ['@storybook/addon-essentials', '@storybook/addon-a11y'], addons: ['@storybook/addon-essentials', '@storybook/addon-a11y'],
webpackFinal: storybookConfig => { webpackFinal: storybookConfig => {