@torpor/view 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/compile.cjs +3 -3
- package/dist/compile.cjs.map +1 -1
- package/dist/compile.js +3 -3
- package/dist/compile.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
- package/src/compile/build/client/buildIfNode.ts +2 -1
- package/src/compile/build/client/buildReplaceNode.ts +2 -1
- package/src/compile/build/client/buildSwitchNode.ts +2 -1
- package/src/watch/transferEffects.ts +1 -1
package/dist/compile.js
CHANGED
|
@@ -1224,7 +1224,7 @@ function buildIfNode(node, status, b) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
function buildIfBranch(node, status, b, parentName, rangeName, index) {
|
|
1226
1226
|
status.imports.add("t_run_branch");
|
|
1227
|
-
b.append(`${node.statement} {`);
|
|
1227
|
+
b.append(`${replaceForVarNames(node.statement, status)} {`);
|
|
1228
1228
|
b.append(`t_run_branch(${rangeName}, ${index}, () => {`);
|
|
1229
1229
|
buildFragment(node, status, b, parentName, "t_before");
|
|
1230
1230
|
status.fragmentStack.push({
|
|
@@ -1259,7 +1259,7 @@ function buildReplaceNode(node, status, b) {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
function buildReplaceBranch(node, status, b, parentName, rangeName) {
|
|
1261
1261
|
status.imports.add("t_run_branch");
|
|
1262
|
-
b.append(`${node.statement};`);
|
|
1262
|
+
b.append(`${replaceForVarNames(node.statement, status)};`);
|
|
1263
1263
|
b.append(`t_run_branch(${rangeName}, -1, () => {`);
|
|
1264
1264
|
buildFragment(node, status, b, parentName, "t_before");
|
|
1265
1265
|
status.fragmentStack.push({
|
|
@@ -1318,7 +1318,7 @@ function buildSwitchNode(node, status, b) {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
function buildSwitchBranch(node, status, b, parentName, rangeName, index) {
|
|
1320
1320
|
status.imports.add("t_run_branch");
|
|
1321
|
-
b.append(`${node.statement} {`);
|
|
1321
|
+
b.append(`${replaceForVarNames(node.statement, status)} {`);
|
|
1322
1322
|
b.append(`t_run_branch(${rangeName}, ${index}, () => {`);
|
|
1323
1323
|
buildFragment(node, status, b, parentName, "t_before");
|
|
1324
1324
|
status.fragmentStack.push({
|