Spaces:
Runtime error
Runtime error
File size: 359 Bytes
9756872 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 'use strict';
const builtinPlugins = require('../../plugins');
module.exports = function applyBuiltinPlugins(schema) {
for (const plugin of Object.values(builtinPlugins)) {
plugin(schema, { deduplicate: true });
}
schema.plugins = Object.values(builtinPlugins).
map(fn => ({ fn, opts: { deduplicate: true } })).
concat(schema.plugins);
};
|