storybook/addons/docs/preset.js
2022-03-12 11:52:20 +08:00

17 lines
416 B
JavaScript

const { findDistEsm } = require('@storybook/core-common');
const { webpack } = require('./dist/cjs/frameworks/common/preset');
function managerEntries(entry = [], options) {
return [...entry, findDistEsm(__dirname, 'register')];
}
function config(entry = [], options = {}) {
return [findDistEsm(__dirname, 'frameworks/common/config'), ...entry];
}
module.exports = {
webpack,
managerEntries,
config,
};