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:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user