mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-12 14:00:01 -04:00
add module bool and update oxc
This commit is contained in:
parent
6b43c90831
commit
365284a1d4
6 changed files with 98 additions and 79 deletions
|
@ -28,11 +28,18 @@ function rewriteJsWrapper(
|
|||
const before = performance.now();
|
||||
try {
|
||||
if (typeof input === "string") {
|
||||
out = rewrite_js(input, meta.base.href, source || "(unknown)", $scramjet);
|
||||
out = rewrite_js(
|
||||
input,
|
||||
meta.base.href,
|
||||
false,
|
||||
source || "(unknown)",
|
||||
$scramjet
|
||||
);
|
||||
} else {
|
||||
out = rewrite_js_from_arraybuffer(
|
||||
new Uint8Array(input),
|
||||
meta.base.href,
|
||||
false,
|
||||
source || "(unknown)",
|
||||
$scramjet
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue