2021-02-03 22:34:44 +08:00

17 lines
430 B
JavaScript

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