mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-02 05:03:44 +08:00
14 lines
369 B
JavaScript
14 lines
369 B
JavaScript
function managerEntries(entry = []) {
|
|
return [...entry, require.resolve('./dist/esm/register')];
|
|
}
|
|
|
|
function config(entry = [], { addDecorator = true } = {}) {
|
|
const linkConfig = [];
|
|
if (addDecorator) {
|
|
linkConfig.push(require.resolve('./dist/esm/preset/addDecorator'));
|
|
}
|
|
return [...entry, ...linkConfig];
|
|
}
|
|
|
|
module.exports = { managerEntries, config };
|