olova 2.0.64 → 2.0.67
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/compiler.js +2 -1
- package/dist/compiler.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/vite.js +2 -1
- package/dist/vite.js.map +1 -1
- package/package.json +1 -1
package/dist/vite.js
CHANGED
|
@@ -407,9 +407,10 @@ function parseHTML(html) {
|
|
|
407
407
|
const attrsStr = rawTag.slice(tagNameEnd).replace(/\/\s*$/, "").trim();
|
|
408
408
|
const selfClose = /\/\s*$/.test(rawTag);
|
|
409
409
|
const attrs = parseAttributes2(attrsStr);
|
|
410
|
-
const
|
|
410
|
+
const isNativeVoidTag = tag === tag.toLowerCase() && /^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/.test(
|
|
411
411
|
tag
|
|
412
412
|
);
|
|
413
|
+
const isSelfClosing = !!selfClose || isNativeVoidTag;
|
|
413
414
|
const element = {
|
|
414
415
|
type: "element",
|
|
415
416
|
tag,
|