-
Notifications
You must be signed in to change notification settings - Fork 302
Closed
Description
I have a simple wrapper around require()
but it seems to have broken my deployment.
const reaction = name => {
const res = require(name);
res.name = name.split('/').pop();
return res;
};
const reactions = {
repository: {
publicized: reaction('../reactions/publicize-repository')
},
issues: {
opened: [reaction('../reactions/check-triage')],
label: [reaction('../reactions/check-triage')]
}
};
Worked just fine before I added the wrapper. Isn't this what "dynamic require" means in this repository's description?
Metadata
Metadata
Assignees
Labels
No labels