@marko/translator-default 5.33.1 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +1 -0
- package/dist/tag/index.js +10 -9
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -504,6 +504,7 @@ function getRuntimeEntryFiles(output, optimize) {
|
|
504
504
|
`${base}runtime/helpers/render-tag.js`,
|
505
505
|
`${base}runtime/helpers/style-value.js`,
|
506
506
|
`${base}runtime/helpers/to-string.js`,
|
507
|
+
`${base}runtime/helpers/empty-component.js`,
|
507
508
|
`${base}core-tags/components/preserve-tag.js`,
|
508
509
|
...(output === "html" ?
|
509
510
|
[
|
package/dist/tag/index.js
CHANGED
@@ -44,16 +44,17 @@ var _nativeTag = _interopRequireDefault(require("./native-tag"));function _getRe
|
|
44
44
|
}
|
45
45
|
}
|
46
46
|
|
47
|
-
if (path.hub.file.markoOpts.ignoreUnrecognizedTags && !tagDef) {
|
48
|
-
(0, _babelUtils.findAttributeTags)(path).forEach((child) => {
|
49
|
-
child.set(
|
50
|
-
"name",
|
51
|
-
_compiler.types.stringLiteral(`at_${child.get("name.value").node.slice(1)}`)
|
52
|
-
);
|
53
|
-
});
|
54
|
-
}
|
55
|
-
|
56
47
|
if (!(0, _babelUtils.isAttributeTag)(path)) {
|
48
|
+
if (path.hub.file.markoOpts.ignoreUnrecognizedTags && !tagDef) {
|
49
|
+
(0, _babelUtils.findAttributeTags)(path).forEach(function replaceAttrTagName(child) {
|
50
|
+
child.set(
|
51
|
+
"name",
|
52
|
+
_compiler.types.stringLiteral(`at_${child.get("name.value").node.slice(1)}`)
|
53
|
+
);
|
54
|
+
(0, _babelUtils.findAttributeTags)(child).forEach(replaceAttrTagName);
|
55
|
+
});
|
56
|
+
}
|
57
|
+
|
57
58
|
if ((0, _babelUtils.isDynamicTag)(path) || !((0, _babelUtils.isMacroTag)(path) || (0, _babelUtils.isNativeTag)(path))) {
|
58
59
|
(0, _attributeTag.analyzeAttributeTags)(path);
|
59
60
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@marko/translator-default",
|
3
|
-
"version": "
|
3
|
+
"version": "6.0.1",
|
4
4
|
"description": "Translates Marko templates to the default Marko runtime.",
|
5
5
|
"keywords": [
|
6
6
|
"babel",
|
@@ -34,8 +34,8 @@
|
|
34
34
|
"self-closing-tags": "^1.0.1"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
|
-
"@marko/compiler": "^5.36.
|
38
|
-
"marko": "^5.34.
|
37
|
+
"@marko/compiler": "^5.36.2",
|
38
|
+
"marko": "^5.34.5"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
41
|
"@marko/compiler": "^5.16.1",
|