Skip to content

Commit

Permalink
chore: support storybook async generator
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin9foong committed Sep 16, 2024
1 parent c7b9e6a commit 6dc8154
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions frontend/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ module.exports = {
},
}
},
babel: () => {
return {
presets: [
'@babel/preset-typescript',
[
'@babel/preset-react',
{
runtime: 'automatic',
},
],
],
}
},
// For injecitng environment variables into Storybook runs
// (see: https://github.com/storybookjs/storybook/issues/12270#issuecomment-1139104523)
env: (config) => ({
Expand Down

0 comments on commit 6dc8154

Please sign in to comment.