mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2025-12-08 20:58:55 +00:00
20 lines
540 B
JavaScript
20 lines
540 B
JavaScript
(function(global, factory) {
|
|
/* eslint-disable no-undef */
|
|
|
|
/* 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("protobufjs/runtime"));
|
|
|
|
/* eslint-enable no-undef */
|
|
})(this, function($protobuf) {
|
|
"use strict"; // eslint-disable-line strict
|
|
|
|
%OUTPUT%
|
|
|
|
$protobuf.roots[%ROOT%] = $root;
|
|
|
|
return $root;
|
|
});
|