Skip to content

Commit

Permalink
fixed wechat game modular (cocos#3076)
Browse files Browse the repository at this point in the history
  • Loading branch information
2youyou2 authored and pandamicro committed Aug 13, 2018
1 parent 4d63ca3 commit e9ae53d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions cocos2d/core/load-pipeline/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ else {
}

function downloadScript (item, callback, isAsync) {
if (sys.platform === sys.WECHAT_GAME) {
require(item.url);
callback(null, item.url);
return;
}

var url = item.url,
d = document,
s = document.createElement('script');
Expand Down
6 changes: 0 additions & 6 deletions gulp/browserify_prelude.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
if(!module) {
var moduleData = modules[name];
if(!moduleData) {
// if we cannot find the module within our internal map or
// cache jump to the current global require ie. the last bundle
// that was added to the page.
var currentRequire = typeof require == "function" && require;
if (!jumped && currentRequire) return currentRequire(name, true);

// this module is excluded from engine
return undefined;
}
Expand Down

0 comments on commit e9ae53d

Please sign in to comment.