mirror of
https://git.steelants.cz/JonatanRek/VUE_GabenParadise.git
synced 2026-10-11 19:34:33 +00:00
Initial Commit
This commit is contained in:
commit
452829f0e1
3410 files changed
+523857
No files matched your search
+29
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
module.exports = static_module_target;
|
||||
|
||||
// - The default wrapper supports AMD, CommonJS and the global scope (as window.root), in this order.
|
||||
// - You can specify a custom wrapper with the --wrap argument.
|
||||
// - CommonJS modules depend on the minimal build for reduced package size with browserify.
|
||||
// - AMD and global scope depend on the full library for now.
|
||||
|
||||
var util = require("../util");
|
||||
|
||||
var protobuf = require("../..");
|
||||
|
||||
static_module_target.description = "Static code without reflection as a module";
|
||||
|
||||
function static_module_target(root, options, callback) {
|
||||
require("./static")(root, options, function(err, output) {
|
||||
if (err) {
|
||||
callback(err);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
output = util.wrap(output, protobuf.util.merge({ dependency: "protobufjs/minimal" }, options));
|
||||
} catch (e) {
|
||||
callback(e);
|
||||
return;
|
||||
}
|
||||
callback(null, output);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user