This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify-loader/lib/runtime/installDirectives.js

20 lines
664 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.
module.exports = function installDirectives (component, directives) {
var options = typeof component.exports === 'function'
? component.exports.extendOptions
: component.options
if (typeof component.exports === 'function') {
options.directives = component.exports.options.directives
}
options.directives = options.directives || {}
for (var i in directives) {
options.directives[i] = options.directives[i] || directives[i]
}
}