1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-20 15:16:38 +00:00

worker: uses import and require()

This commit is contained in:
Steven Hugg
2021-07-17 15:53:07 -05:00
parent 954490e1b6
commit e82245d7bd
5 changed files with 35 additions and 67 deletions
+1 -6
View File
@@ -12,12 +12,7 @@ global.window = global;
global.exports = {};
global.self = global;
global.location = {href:'.'};
global.require = (modname) => {
//console.log("REQUIRE",modname);
if (modname == 'path')
return _require(modname);
};
global.path = require('path');
global.btoa = require('btoa');
global.atob = require('atob');