mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2025-12-08 20:58:55 +00:00
16 lines
456 B
JavaScript
16 lines
456 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%
|
|
|
|
return $protobuf.roots[%ROOT%] = $root;
|
|
});
|