File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,14 @@ module.exports = {
2323 // SEE: https://storybook.js.org/docs/react/configure/babel
2424 babel : async ( options ) => ( {
2525 ...options ,
26- plugins : [ "@babel/plugin-proposal-class-properties" ] ,
26+ plugins : [ [ "@babel/plugin-proposal-class-properties" , { loose : true } ] ] ,
2727 } ) ,
2828
29+ // Static files loaded by storybook, relative to this file.
30+ //
31+ // SEE: https://storybook.js.org/docs/react/configure/overview#using-storybook-api
32+ staticDirs : [ "../static" ] ,
33+
2934 // Storybook internally uses its own Webpack configuration instead of ours.
3035 //
3136 // SEE: https://storybook.js.org/docs/react/configure/webpack
Original file line number Diff line number Diff line change 1616 "playwright:install" : " playwright install" ,
1717 "playwright:install-deps" : " playwright install-deps" ,
1818 "playwright:test" : " playwright test --config=e2e/playwright.config.ts" ,
19- "storybook" : " start-storybook -p 6006 -s ./static " ,
19+ "storybook" : " start-storybook -p 6006" ,
2020 "storybook:build" : " build-storybook" ,
2121 "test" : " jest --selectProjects test" ,
2222 "test:coverage" : " jest --selectProjects test --collectCoverage" ,
You can’t perform that action at this time.
0 commit comments