UNPKG
luminati-proxy-stripped
Version:
latest (1.101.871)
1.101.871
A configurable local proxy for luminati.io
luminati.io
luminati-io/luminati-proxy
luminati-proxy-stripped
/
lib
/
hutil-loader.js
10 lines
(9 loc)
•
295 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
// LICENSE_CODE ZON ISC
'use strict'
;
/*jslint node:true*/
module
.
exports
=
function
myLoader
(
source
){
return
'\nvar module;\n'
+source .
replace
(
'var define;'
,
''
) .
replace
(
'define,'
,
''
) .
replace
(
/\{\s*define\s*=[^;]+;([^}]*)\}/gm
,
'{$1}'
) .
replace
(
/define\s*=.+/g
,
';'
); };