diff --git a/storybook-addon-export-to-codesandbox/.storybook/main.js b/storybook-addon-export-to-codesandbox/.storybook/main.js index 9c654f3..420e296 100644 --- a/storybook-addon-export-to-codesandbox/.storybook/main.js +++ b/storybook-addon-export-to-codesandbox/.storybook/main.js @@ -9,7 +9,7 @@ module.exports = { use: { loader: 'babel-loader', options: { - plugins: [require('./babel.plugin')], + plugins: [require('../src/babel.plugin')], }, }, }); diff --git a/storybook-addon-export-to-codesandbox/.storybook/babel.plugin.js b/storybook-addon-export-to-codesandbox/src/babel.plugin.js similarity index 100% rename from storybook-addon-export-to-codesandbox/.storybook/babel.plugin.js rename to storybook-addon-export-to-codesandbox/src/babel.plugin.js diff --git a/storybook-addon-export-to-codesandbox/src/index.ts b/storybook-addon-export-to-codesandbox/src/index.ts index 93702b7..d9632a4 100644 --- a/storybook-addon-export-to-codesandbox/src/index.ts +++ b/storybook-addon-export-to-codesandbox/src/index.ts @@ -1,4 +1,6 @@ -export { default as babelPlugin } from "../.storybook/babel.plugin"; +// Temporary solution until this issue gets implemented: +// https://github.com/microsoft/fluentui-storybook-addons/issues/2 +export { default as babelPlugin } from "./babel.plugin"; if (module && module.hot && module.hot.decline) { module.hot.decline();