webtides / luna-js

MIT License
8 stars 0 forks source link

Cannot load multiple hooks with the same name #120

Closed eddyloewen closed 6 months ago

eddyloewen commented 1 year ago

When I register hooks from multiple places it would be nice to be able to have multiple hooks with the same name.

hooks: {
    input: [path.join(__dirname, 'hooks'), path.join(__dirname, 'node_modules/some-plugin/hooks')],
},

Currently only the last hook with the same name will be registered. @lukas-schardt I have code ready to fix it - I just wanted to make sure that this was not intended behaviour?