mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
11 lines
347 B
JavaScript
11 lines
347 B
JavaScript
'use strict';
|
|
module.exports = {
|
|
process: function (input, context) {
|
|
var dependenciesParent = input.dependenciesParent;
|
|
if (!dependenciesParent) {
|
|
throw new Error('Expected property "dependenciesParent"');
|
|
}
|
|
delete input.dependenciesParent;
|
|
dependenciesParent.addDependency(input);
|
|
}
|
|
}; |