@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/CHANGELOG.md
CHANGED
package/dist/compile.cjs
CHANGED
|
@@ -1250,7 +1250,7 @@ function buildIfNode(node, status, b) {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
function buildIfBranch(node, status, b, parentName, rangeName, index) {
|
|
1252
1252
|
status.imports.add("t_run_branch");
|
|
1253
|
-
b.append(`${node.statement} {`);
|
|
1253
|
+
b.append(`${replaceForVarNames(node.statement, status)} {`);
|
|
1254
1254
|
b.append(`t_run_branch(${rangeName}, ${index}, () => {`);
|
|
1255
1255
|
buildFragment(node, status, b, parentName, "t_before");
|
|
1256
1256
|
status.fragmentStack.push({
|
|
@@ -1285,7 +1285,7 @@ function buildReplaceNode(node, status, b) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
function buildReplaceBranch(node, status, b, parentName, rangeName) {
|
|
1287
1287
|
status.imports.add("t_run_branch");
|
|
1288
|
-
b.append(`${node.statement};`);
|
|
1288
|
+
b.append(`${replaceForVarNames(node.statement, status)};`);
|
|
1289
1289
|
b.append(`t_run_branch(${rangeName}, -1, () => {`);
|
|
1290
1290
|
buildFragment(node, status, b, parentName, "t_before");
|
|
1291
1291
|
status.fragmentStack.push({
|
|
@@ -1344,7 +1344,7 @@ function buildSwitchNode(node, status, b) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
function buildSwitchBranch(node, status, b, parentName, rangeName, index) {
|
|
1346
1346
|
status.imports.add("t_run_branch");
|
|
1347
|
-
b.append(`${node.statement} {`);
|
|
1347
|
+
b.append(`${replaceForVarNames(node.statement, status)} {`);
|
|
1348
1348
|
b.append(`t_run_branch(${rangeName}, ${index}, () => {`);
|
|
1349
1349
|
buildFragment(node, status, b, parentName, "t_before");
|
|
1350
1350
|
status.fragmentStack.push({
|