cocos-enhance-kit/adapters/platforms/taobao-minigame/index.js
2024-10-16 17:12:08 +08:00

18 lines
542 B
JavaScript

const _global = window;
const adapter = _global.__globalAdapter = _global.__globalAdapter || {};
Object.assign(adapter, {
init () {
require('./wrapper/builtin');
_global.DOMParser = require('../../common/xmldom/dom-parser').DOMParser;
require('./wrapper/unify');
require('./wrapper/fs-utils');
require('../../common/engine/globalAdapter');
require('./wrapper/systemInfo');
},
adaptEngine () {
require('../../common/engine');
require('./wrapper/engine');
},
});