Skip to content

Commit

Permalink
fix: esm subcomponents with custom label
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 13, 2020
1 parent 60840a9 commit 82e95b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions core/instrument/src/babel/esm-stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ export const extractCSFStories = (
if (nameAttr) {
story.name = nameAttr;
}
if (attrComponents.length > 0) {
story.component = attrComponents[0];
}
store.stories[storyExport] = story;
globals[storyExport] = story;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,8 @@ Button.defaultProps = {
"Button": "b5fffc2a9e710b29374f13f1d7ef028c",
"Spinner": "08a97b28475aff9eba8252eeffddeea5",
},
"date": 2020-07-13T12:20:45.762Z,
"dateModified": 2020-07-13T12:24:42.640Z,
"date": 2020-07-13T13:59:46.722Z,
"dateModified": 2020-07-13T13:59:46.724Z,
"fileName": "/Users/atanasster/component-controls/core/webpack-compile/tests/fixtures/subcomponents/esm.stories.tsx",
"package": "411a6b6f22151d62603115530afde73f",
"title": "Library/Components/Button",
Expand Down Expand Up @@ -578,8 +578,8 @@ Button.defaultProps = {
"Button": "b5fffc2a9e710b29374f13f1d7ef028c",
"Spinner": "08a97b28475aff9eba8252eeffddeea5",
},
"date": 2020-07-13T12:20:22.482Z,
"dateModified": 2020-07-13T12:24:56.940Z,
"date": 2020-07-13T13:59:53.358Z,
"dateModified": 2020-07-13T13:59:53.360Z,
"fileName": "/Users/atanasster/component-controls/core/webpack-compile/tests/fixtures/subcomponents/mdx.stories.mdx",
"package": "a3c604b46a9a60e6152bda8549a7f0e8",
"title": "Library/Components/Spinner",
Expand Down

0 comments on commit 82e95b9

Please sign in to comment.