This repository was archived by the owner on Jul 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ impl Fold for ResolveFold {
302
302
// - `import("https://esm.sh/rect")` -> `import("/-/esm.sh/react.js")`
303
303
// - `import("../components/logo.tsx")` -> `import("../components/logo.js#/components/logo.tsx@000000")`
304
304
// - `import("../components/logo.tsx")` -> `__ALEPH.import("../components/logo.js#/components/logo.tsx@000000", "/pages/index.tsx")`
305
- // - `useDeno(() => {})` -> `useDeno(() => {}, false , "useDeno.KEY")`
305
+ // - `useDeno(() => {})` -> `useDeno(() => {}, null , "useDeno.KEY")`
306
306
fn fold_call_expr ( & mut self , mut call : CallExpr ) -> CallExpr {
307
307
if is_call_expr_by_name ( & call, "import" ) {
308
308
let url = match call. args . first ( ) {
@@ -359,10 +359,7 @@ impl Fold for ResolveFold {
359
359
if call. args . len ( ) == 1 {
360
360
call. args . push ( ExprOrSpread {
361
361
spread : None ,
362
- expr : Box :: new ( Expr :: Lit ( Lit :: Num ( Number {
363
- span : DUMMY_SP ,
364
- value : 0 as f64 ,
365
- } ) ) ) ,
362
+ expr : Box :: new ( Expr :: Lit ( Lit :: Null ( Null { span : DUMMY_SP } ) ) ) ,
366
363
} ) ;
367
364
}
368
365
if call. args . len ( ) > 2 {
You can’t perform that action at this time.
0 commit comments