mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2026-01-25 16:43:02 +00:00
18 lines
468 B
JavaScript
18 lines
468 B
JavaScript
(function(global, factory) { /* global define, require, module */
|
|
|
|
/* AMD */ if (typeof define === 'function' && define.amd)
|
|
define(["protobuf"], factory);
|
|
|
|
/* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
|
|
module.exports = factory(require(%DEPENDENCY%));
|
|
|
|
})(this, function($protobuf) {
|
|
"use strict";
|
|
|
|
%OUTPUT%
|
|
|
|
$protobuf.roots[%ROOT%] = $root;
|
|
|
|
return $root;
|
|
});
|