mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-16 15:40:02 -04:00
fix minor bugs
This commit is contained in:
parent
809e69461e
commit
913b5aeb50
7 changed files with 34 additions and 27 deletions
|
@ -5,7 +5,7 @@ import { encodeUrl } from "./url";
|
|||
|
||||
// i am a cat. i like to be petted. i like to be fed. i like to be
|
||||
|
||||
export function rewriteJs(js: string, origin?: string) {
|
||||
export function rewriteJs(js: string, origin?: URL) {
|
||||
const ast = parse(js, {
|
||||
module: true
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue