MCPcopy Create free account
hub / github.com/socketstream/socketstream / systemModule

Function systemModule

lib/client/bundler/index.js:78–94  ·  view source on GitHub ↗
(name,wrap)

Source from the content-addressed store, hash-verified

76 compressor = uglifyjs.Compressor({warnings:false});
77
78 function systemModule(name,wrap) {
79 name = name.replace(/\.js$/,'');
80 var mod = system.assets.modules[name];
81 if (mod) {
82 var code = wrap===false? mod.content: ss.bundler.wrapModule(name, mod.content);
83 return {
84 file: mod.name,
85 name: mod.name,
86 path: mod.path,
87 dir: mod.dir,
88 content: code,
89 options: mod.options,
90 type: mod.type,
91 includeType: 'system'
92 };
93 }
94 }
95
96 return {
97

Callers 1

index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected