Skip to content

Commit c2c9fcd

Browse files
committed
revert testing changes
1 parent a556783 commit c2c9fcd

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

.storybook/main.js

+8-21
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const path = require('path');
22
const fs = require('fs');
33

44
const {
5-
// loadWorkspaceAddon,
5+
loadWorkspaceAddon,
66
registerTsPaths,
77
processBabelLoaderOptions,
88
getImportMappingsForExportToSandboxAddon,
@@ -25,9 +25,12 @@ module.exports = /** @type {import('./types').StorybookConfig} */ ({
2525
'@storybook/addon-mdx-gfm',
2626

2727
// 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} */
3134
options: {
3235
importMappings: getImportMappingsForExportToSandboxAddon(),
3336
babelLoaderOptionsUpdater: processBabelLoaderOptions,
@@ -36,23 +39,7 @@ module.exports = /** @type {import('./types').StorybookConfig} */ ({
3639
include: /stories/,
3740
},
3841
},
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+
}),
5643
],
5744
webpackFinal: config => {
5845
registerTsPaths({ config, configFile: tsConfigPath });

0 commit comments

Comments
 (0)