Esbuild with types

This commit is contained in:
Sidharth Vinod
2022-09-02 00:34:03 +05:30
parent 84bf79f72b
commit 6be05e9948
5 changed files with 27 additions and 14 deletions

View File

@@ -271,7 +271,7 @@ document
{ $$ = [];}
| document line
{
if($2 !== []){
if(Array.isArray($2) && $2.length > 0){
$1.push($2);
}
$$=$1;}