You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
Previously the addon used context.story as the name of the export for
codoesandbox. However the below example shows how this value can be
incorrect
exportconstMyStory=()=>{/* story */}MyStory.storyName='My custom story name'
This will break the export as the index.ts will include the following
import*asReactDOMfrom'react-dom';import{FluentProvider,webLightTheme}from'@fluentui/react-components';import{MycustomstoryasExample}from'./example';//// You can edit this example in "example.tsx".//ReactDOM.render(<FluentProvidertheme={webLightTheme}><Example/></FluentProvider>,document.getElementById('root'),);
The solution should be to use a babel transform to find the actual name of the exported function and make it available as a parameter for the addon to consume. This can simply be added as another plugin similary to the modifyImports plugin
The text was updated successfully, but these errors were encountered:
Previously the addon used
context.story
as the name of the export forcodoesandbox. However the below example shows how this value can be
incorrect
This will break the export as the
index.ts
will include the followingThe solution should be to use a babel transform to find the actual name of the exported function and make it available as a parameter for the addon to consume. This can simply be added as another plugin similary to the modifyImports plugin
The text was updated successfully, but these errors were encountered: