File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,14 @@ module.exports = {
23
23
// SEE: https://storybook.js.org/docs/react/configure/babel
24
24
babel : async ( options ) => ( {
25
25
...options ,
26
- plugins : [ "@babel/plugin-proposal-class-properties" ] ,
26
+ plugins : [ [ "@babel/plugin-proposal-class-properties" , { loose : true } ] ] ,
27
27
} ) ,
28
28
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
+
29
34
// Storybook internally uses its own Webpack configuration instead of ours.
30
35
//
31
36
// SEE: https://storybook.js.org/docs/react/configure/webpack
Original file line number Diff line number Diff line change 16
16
"playwright:install" : " playwright install" ,
17
17
"playwright:install-deps" : " playwright install-deps" ,
18
18
"playwright:test" : " playwright test --config=e2e/playwright.config.ts" ,
19
- "storybook" : " start-storybook -p 6006 -s ./static " ,
19
+ "storybook" : " start-storybook -p 6006" ,
20
20
"storybook:build" : " build-storybook" ,
21
21
"test" : " jest --selectProjects test" ,
22
22
"test:coverage" : " jest --selectProjects test --collectCoverage" ,
You can’t perform that action at this time.
0 commit comments