marko/components/loadComponent-dynamic.js
2017-02-20 16:30:16 -07:00

8 lines
253 B
JavaScript

'use strict';
module.exports = function load(typeName) {
// We make the assumption that the component type name is a path to a
// fully resolved module path and that the module exists
// as a CommonJS module
return require(typeName);
};