1
0
mirror of https://github.com/storybookjs/storybook.git synced 2025-04-08 11:11:53 +08:00

10 lines
272 B
JavaScript

function config(entry = [], { addDecorator = true } = {}) {
const queryParamsConfig = [];
if (addDecorator) {
queryParamsConfig.push(require.resolve('./dist/esm/preset/addDecorator'));
}
return [...entry, ...queryParamsConfig];
}
module.exports = { config };