mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 01:11:08 +08:00
17 lines
416 B
JavaScript
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,
|
|
};
|