After integrating the plugin to emcm-ui both Kevin and I ran into errors when importing the plugin to doczrc.js. It was an error importing and not using, and it was an error while calling callee, caller, or arguments while in strict mode. The call stack came from esm.js which is a nested dependency inside of docz-core. The only thing we used docz-core for is to get the createPlugin function, so I removed the dependency and made it so the consumer of the plugin can pass in that function for their docz version. This change resolved the issue.
…a parameter to the storybook plugin
Reasoning for this change.
After integrating the plugin to emcm-ui both Kevin and I ran into errors when importing the plugin to doczrc.js. It was an error importing and not using, and it was an error while calling
callee
,caller
, orarguments
while in strict mode. The call stack came from esm.js which is a nested dependency inside of docz-core. The only thing we used docz-core for is to get the createPlugin function, so I removed the dependency and made it so the consumer of the plugin can pass in that function for their docz version. This change resolved the issue.