marko 6.0.0-next.3.65 → 6.0.0-next.3.66
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/dist/translator/index.js +13 -6
- package/package.json +2 -2
package/dist/translator/index.js
CHANGED
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
29
|
|
30
30
|
// src/translator/index.ts
|
31
|
-
var
|
32
|
-
__export(
|
31
|
+
var index_exports = {};
|
32
|
+
__export(index_exports, {
|
33
33
|
analyze: () => analyze,
|
34
34
|
getRuntimeEntryFiles: () => getRuntimeEntryFiles,
|
35
35
|
internalEntryBuilder: () => entry_builder_default,
|
@@ -39,7 +39,7 @@ __export(translator_exports, {
|
|
39
39
|
transform: () => transform,
|
40
40
|
translate: () => translate
|
41
41
|
});
|
42
|
-
module.exports = __toCommonJS(
|
42
|
+
module.exports = __toCommonJS(index_exports);
|
43
43
|
|
44
44
|
// src/translator/util/runtime-info.ts
|
45
45
|
var import_package = require("../../package.json");
|
@@ -2255,7 +2255,11 @@ function getSignal(section, referencedBindings, name2 = generateSignalName(refer
|
|
2255
2255
|
return callRuntime(
|
2256
2256
|
"intersection",
|
2257
2257
|
import_compiler17.types.numericLiteral(id),
|
2258
|
-
getSignalFn(
|
2258
|
+
getSignalFn(
|
2259
|
+
signal,
|
2260
|
+
[scopeIdentifier],
|
2261
|
+
signal.renderReferencedBindings
|
2262
|
+
),
|
2259
2263
|
scopeOffset || referencedBindings.length > 2 ? import_compiler17.types.numericLiteral(referencedBindings.length - 1) : void 0,
|
2260
2264
|
scopeOffset && getScopeAccessorLiteral(scopeOffset)
|
2261
2265
|
);
|
@@ -2516,7 +2520,9 @@ function addRenderReferences(signal, referencedBindings) {
|
|
2516
2520
|
);
|
2517
2521
|
}
|
2518
2522
|
function addValue(targetSection, referencedBindings, signal, value, scope = scopeIdentifier) {
|
2519
|
-
getSignal(targetSection, referencedBindings)
|
2523
|
+
const parentSignal = getSignal(targetSection, referencedBindings);
|
2524
|
+
addRenderReferences(parentSignal, referencedBindings);
|
2525
|
+
parentSignal.values.push({
|
2520
2526
|
signal,
|
2521
2527
|
value,
|
2522
2528
|
scope
|
@@ -8858,7 +8864,8 @@ var referenced_identifier_default = {
|
|
8858
8864
|
scopeIdentifier,
|
8859
8865
|
import_compiler51.types.numericLiteral(exprId)
|
8860
8866
|
])
|
8861
|
-
)
|
8867
|
+
),
|
8868
|
+
false
|
8862
8869
|
);
|
8863
8870
|
}
|
8864
8871
|
identifier.replaceWith(
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "marko",
|
3
|
-
"version": "6.0.0-next.3.
|
3
|
+
"version": "6.0.0-next.3.66",
|
4
4
|
"description": "Optimized runtime for Marko templates.",
|
5
5
|
"keywords": [
|
6
6
|
"api",
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"build": "node -r ~ts ./scripts/bundle.ts"
|
49
49
|
},
|
50
50
|
"dependencies": {
|
51
|
-
"@marko/compiler": "^5.39.
|
51
|
+
"@marko/compiler": "^5.39.14",
|
52
52
|
"csstype": "^3.1.3",
|
53
53
|
"magic-string": "^0.30.17"
|
54
54
|
},
|