storybook/docs/snippets/common/storybook-addon-load-external-addons-preset.js.mdx
2022-01-12 18:08:49 +00:00

16 lines
303 B
Plaintext

```js
// my-preset/index.js
function managerEntries(entry = []) {
return [...entry, require.resolve('my-other-addon/register')];
}
const config = (entry = [], options) => {
return [...entry, require.resolve('my-other-addon/addDecorator')];
};
module.exports = {
managerEntries,
config,
};
```