File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
frameworks/non-keyed/mutraction Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 13
13
"build-prod" : " npm run build" ,
14
14
"build" : " npx tsc && npm run transform && npm run bundle" ,
15
15
"transform" : " npx babel out -d out2" ,
16
- "bundle" : " npx esbuild out2/index.js --bundle --format=esm --outfile=dist/index.js"
16
+ "bundle" : " npx esbuild out2/index.js --bundle --format=esm --outfile=dist/index.js --minify "
17
17
},
18
18
"author" : " Tom Theisen" ,
19
19
"license" : " MIT" ,
25
25
"typescript" : " ^5.1.6"
26
26
},
27
27
"dependencies" : {
28
- "mutraction-dom" : " 0.24 .0"
28
+ "mutraction-dom" : " 0.25 .0"
29
29
}
30
30
}
Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ function append(n: number) {
21
21
22
22
function update ( ) {
23
23
defaultTracker . startTransaction ( ) ;
24
- for ( let i = 0 ; i < items . length ; i += 10 ) {
25
- items [ i ] . label += " !!!" ;
24
+ for ( let i = 0 , found = 0 ; i < items . length ; i ++ ) {
25
+ if ( ! ( i in items ) ) continue ;
26
+ if ( found ++ % 10 === 0 ) items [ i ] . label += " !!!" ;
26
27
}
27
28
defaultTracker . commit ( ) ;
28
29
}
You can’t perform that action at this time.
0 commit comments