mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
8 lines
253 B
JavaScript
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);
|
|
}; |