@marko/compiler
Advanced tools
@@ -632,2 +632,12 @@ "use strict";exports.__esModule = true;exports.parseMarko = parseMarko;var _babelUtils = require("@marko/compiler/babel-utils"); | ||
| if (isControlFlow) { | ||
| if (!parentTag) { | ||
| onNext(); | ||
| throw file.buildCodeFrameError( | ||
| attributeTags.find( | ||
| (child) => _babel.types.isMarkoTag(child) && isAttrTag(child) | ||
| )?.name || node.name, | ||
| "@tags must be nested within another element." | ||
| ); | ||
| } | ||
| currentTag.remove(); | ||
@@ -634,0 +644,0 @@ parentTag.pushContainer("attributeTags", node); |
+1
-1
| { | ||
| "name": "@marko/compiler", | ||
| "version": "5.39.64", | ||
| "version": "5.39.65", | ||
| "description": "Marko template to JS compiler.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
5098875
0.01%124293
0.01%