Skip to content

Commit a1063df

Browse files
committed
Removed unnecessary data assignment on template parsing
1 parent b1f833d commit a1063df

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

esm/parser.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ const resolve = (template, values, xml) => {
5656
// ⚠️ once array, always array!
5757
const update = isArray(values[i - 1]) ? array : hole;
5858
if (update === hole) replace.push(node);
59-
else node.data = '[]';
6059
entries.push(entry(createPath(node), update, null));
6160
search = `${prefix}${i++}`;
6261
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"rollup:init": "rollup --config rollup/init.config.js",
1313
"server": "npx static-handler .",
1414
"size": "echo \"index $(cat index.js | brotli | wc -c)\";echo \"keyed $(cat keyed.js | brotli | wc -c)\";echo \"reactive $(cat reactive.js | brotli | wc -c)\";echo \"preactive $(cat preactive.js | brotli | wc -c)\";echo \"signal $(cat signal.js | brotli | wc -c)\";echo \"node $(cat node.js | brotli | wc -c)\";",
15-
"test": "c8 node test/coverage.js",
15+
"test": "c8 node test/coverage.js && node test/modern.mjs",
1616
"coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
1717
"ts": "tsc -p ."
1818
},

0 commit comments

Comments
 (0)