Skip to content

Commit

Permalink
fix: configurable module overrides defaults (#73)
Browse files Browse the repository at this point in the history
fixes #72
  • Loading branch information
michalniemiec28 authored Oct 18, 2022
1 parent 45850e6 commit 799fc9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configurable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var engine = require('./engine');
var defaults = require('./defaults');

module.exports = function(overridenOptions) {
return engine(overridenOptions);
return engine({ ...defaults, ...overridenOptions });
};

0 comments on commit 799fc9c

Please sign in to comment.