1 | function managerEntries(entry = [], options) {
|
2 | return [...entry, require.resolve('./dist/esm/register')];
|
3 | }
|
4 |
|
5 | function config(entry = [], options = {}) {
|
6 | const { framework } = options;
|
7 | const docsConfig = [require.resolve('./dist/esm/frameworks/common/config')];
|
8 | try {
|
9 | docsConfig.push(require.resolve(`./dist/esm/frameworks/${framework}/config`));
|
10 | } catch (err) {
|
11 | // there is no custom config for the user's framework, do nothing
|
12 | }
|
13 | return [...docsConfig, ...entry];
|
14 | }
|
15 |
|
16 | module.exports = {
|
17 | managerEntries,
|
18 | config,
|
19 | };
|