Skip to content

Commit

Permalink
fix: do not assign export default if not mdxTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Mar 17, 2021
1 parent bd616e2 commit efbd562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/instrument/src/babel/mdx-stories.ts
Expand Up @@ -76,12 +76,12 @@ export const extractMDXStories: (
packages: {},
};

if (props) {
const { transformMDX } = _options.mdx;
if (transformMDX && props) {
store.exports.default = {
story: doc,
};
}
const { transformMDX } = _options.mdx;
traverse(ast as any, {
JSXElement: (path: any) => {
const node = path.node.openingElement;
Expand Down

0 comments on commit efbd562

Please sign in to comment.