diff --git a/packages/runtime-test/src/serialize.ts b/packages/runtime-test/src/serialize.ts index 72ed03d2..57a3e7a5 100644 --- a/packages/runtime-test/src/serialize.ts +++ b/packages/runtime-test/src/serialize.ts @@ -42,7 +42,7 @@ function serializeElement( const value = node.props[key] return isOn(key) || value == null ? `` : `${key}=${JSON.stringify(value)}` }) - .filter(_ => _) + .filter(Boolean) .join(' ') const padding = indent ? ` `.repeat(indent).repeat(depth) : `` return ( diff --git a/scripts/build.js b/scripts/build.js index 9bc27c60..2e576d7a 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -68,7 +68,7 @@ async function build(target) { args.types ? `TYPES:true` : ``, prodOnly ? `PROD_ONLY:true` : `` ] - .filter(_ => _) + .filter(Boolean) .join(',') ], { stdio: 'inherit' }