1.01里正常的proto导出的js在1.03里会报错

dcodeIO的protobufjs版本是5.0.1,开头如下
(function(global, factory) {

/* AMD */ if (typeof define === 'function' && define["amd"])
    define(["bytebuffer"], factory);
/* CommonJS */ else if (typeof require === "function" && typeof module === "object" && module && module["exports"])
    module["exports"] = factory(require("bytebuffer"), true);
/* Global */ else
    (global["dcodeIO"] = global["dcodeIO"] || {})["ProtoBuf"] = factory(global["dcodeIO"]["ByteBuffer"]);

})(this, function(ByteBuffer, isCommonJS) {
“use strict”;

/**
 * The ProtoBuf namespace.
 * @exports ProtoBuf
 * @namespace
 * @expose
 */
var ProtoBuf = {};

/**
 * @type {!function(new: ByteBuffer, ...[*])}
 * @expose
 */
ProtoBuf.ByteBuffer = ByteBuffer;

/**
 * @type {?function(new: Long, ...[*])}
 * @expose
 */
ProtoBuf.Long = ByteBuffer.Long || null;

/**
 * ProtoBuf.js version.
 * @type {string}
 * @const
 * @expose
 */
ProtoBuf.VERSION = "5.0.1";

。。。。。。

proto命令生成的proto.js开头如下
var pb = dcodeIO.ProtoBuf.newBuilder({“populateAccessors”: false})[‘import’]({
“package”: “pb”,
“syntax”: “proto3”,
“messages”: [
{…

1.01版里正常,用1.03运行时会报错
index.js:1 ErrorEvent {isTrusted: true, message: “Uncaught TypeError: Cannot read property ‘newBuilder’ of undefined”, filename: “http://localhost:7456/res/raw-assets/scripts/protocal/proto.js

新手跪求怎么改才能在1.03里正常:joy:

1.03-1.04加载第三方js有问题吧,只能用1.1的。

需要用 v1.1 的插件脚本依赖来定义依赖关系,确保加载顺序正确