make SEA work in service worker (no window obj) (#1282)

This commit is contained in:
Martti Malmi 2022-10-19 08:45:39 +03:00 committed by GitHub
parent 6d7e980b5f
commit ad8e67e3c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
sea.js
View File

@ -1,5 +1,7 @@
;(function(){
var window = this || self || window;
/* UNBUILD */
function USE(arg, req){
return req? require(arg) : arg.slice? USE[R(arg)] : function(mod, path){