marko 6.0.68 → 6.0.70
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 +5 -6
- package/package.json +2 -2
package/dist/translator/index.js
CHANGED
@@ -10120,13 +10120,11 @@ var style_default = {
|
|
10120
10120
|
)
|
10121
10121
|
);
|
10122
10122
|
} else {
|
10123
|
+
const varDecl = import_compiler50.types.variableDeclaration("const", [
|
10124
|
+
import_compiler50.types.variableDeclarator(node.var, (0, import_babel_utils44.importStar)(file, importPath, "style"))
|
10125
|
+
]);
|
10123
10126
|
(0, import_babel_utils44.getProgram)().node.body.push(
|
10124
|
-
import_compiler50.types.
|
10125
|
-
import_compiler50.types.variableDeclarator(
|
10126
|
-
node.var,
|
10127
|
-
(0, import_babel_utils44.importStar)(file, importPath, "style")
|
10128
|
-
)
|
10129
|
-
])
|
10127
|
+
isOutputDOM() ? varDecl : import_compiler50.types.markoScriptlet([varDecl], true)
|
10130
10128
|
);
|
10131
10129
|
}
|
10132
10130
|
}
|
@@ -12046,6 +12044,7 @@ function getChangeHandler(tag, attr) {
|
|
12046
12044
|
} else {
|
12047
12045
|
markoRoot.unshiftContainer("body", changeHandlerConst);
|
12048
12046
|
}
|
12047
|
+
markoRoot.scope.crawl();
|
12049
12048
|
return import_compiler58.types.markoAttribute(
|
12050
12049
|
changeAttrName,
|
12051
12050
|
withPreviousLocation(import_compiler58.types.identifier(changeHandlerId), attr.value)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "marko",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.70",
|
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.36",
|
52
52
|
"csstype": "^3.1.3",
|
53
53
|
"magic-string": "^0.30.17"
|
54
54
|
},
|