@@ -2,7 +2,7 @@ const path = require('path');
2
2
const fs = require ( 'fs' ) ;
3
3
4
4
const {
5
- // loadWorkspaceAddon,
5
+ loadWorkspaceAddon,
6
6
registerTsPaths,
7
7
processBabelLoaderOptions,
8
8
getImportMappingsForExportToSandboxAddon,
@@ -25,9 +25,12 @@ module.exports = /** @type {import('./types').StorybookConfig} */ ({
25
25
'@storybook/addon-mdx-gfm' ,
26
26
27
27
// internal monorepo custom addons
28
- '@fluentui/react-storybook-addon' ,
29
- {
30
- name : '@fluentui/react-storybook-addon-export-to-sandbox' ,
28
+ /** {@link file://./../packages/react-components/react-storybook-addon/package.json } */
29
+ loadWorkspaceAddon ( '@fluentui/react-storybook-addon' , { tsConfigPath } ) ,
30
+ /** {@link file://./../packages/react-components/react-storybook-addon-export-to-sandbox/package.json } */
31
+ loadWorkspaceAddon ( '@fluentui/react-storybook-addon-export-to-sandbox' , {
32
+ tsConfigPath,
33
+ /** @type {import('../packages/react-components/react-storybook-addon-export-to-sandbox/src/public-types').PresetConfig } */
31
34
options : {
32
35
importMappings : getImportMappingsForExportToSandboxAddon ( ) ,
33
36
babelLoaderOptionsUpdater : processBabelLoaderOptions ,
@@ -36,23 +39,7 @@ module.exports = /** @type {import('./types').StorybookConfig} */ ({
36
39
include : / s t o r i e s / ,
37
40
} ,
38
41
} ,
39
- } ,
40
-
41
- // /** {@link file://./../packages/react-components/react-storybook-addon/package.json } */
42
- // loadWorkspaceAddon('@fluentui/react-storybook-addon', { tsConfigPath }),
43
- // /** {@link file://./../packages/react-components/react-storybook-addon-export-to-sandbox/package.json } */
44
- // loadWorkspaceAddon('@fluentui/react-storybook-addon-export-to-sandbox', {
45
- // tsConfigPath,
46
- // /** @type {import('../packages/react-components/react-storybook-addon-export-to-sandbox/src/public-types').PresetConfig } */
47
- // options: {
48
- // importMappings: getImportMappingsForExportToSandboxAddon(),
49
- // babelLoaderOptionsUpdater: processBabelLoaderOptions,
50
- // webpackRule: {
51
- // test: /\.stories\.tsx$/,
52
- // include: /stories/,
53
- // },
54
- // },
55
- // }),
42
+ } ) ,
56
43
] ,
57
44
webpackFinal : config => {
58
45
registerTsPaths ( { config, configFile : tsConfigPath } ) ;
0 commit comments