UNPKG

539 BJavaScriptView Raw
1function managerEntries(entry = [], options) {
2 return [...entry, require.resolve('./dist/esm/register')];
3}
4
5function 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
16module.exports = {
17 managerEntries,
18 config,
19};