Skip to content

Commit 33305d0

Browse files
committed
revert: chore(deps): update dependency html-tags to v4 (#708)
This reverts commit 217b922.
1 parent 9ae4ecc commit 33305d0

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

.github/renovate.json5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
enabled: false,
1515
},
1616
],
17+
ignoreDeps: ['html-tags'],
1718
}

packages/babel-plugin-jsx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@babel/types": "^7.25.6",
3232
"@vue/babel-helper-vue-transform-on": "workspace:*",
3333
"@vue/babel-plugin-resolve-type": "workspace:*",
34-
"html-tags": "^4.0.0",
34+
"html-tags": "^3.3.1",
3535
"svg-tags": "^1.0.0"
3636
},
3737
"devDependencies": {

packages/babel-plugin-jsx/src/utils.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as t from '@babel/types';
2-
import htmlTags, { type HtmlTags } from 'html-tags';
2+
import htmlTags from 'html-tags';
33
import svgTags from 'svg-tags';
44
import { type NodePath } from '@babel/traverse';
55
import type { State } from './interface';
@@ -60,7 +60,7 @@ export const checkIsComponent = (
6060
return (
6161
!state.opts.isCustomElement?.(tag) &&
6262
shouldTransformedToSlots(tag) &&
63-
!htmlTags.includes(tag as HtmlTags) &&
63+
!htmlTags.includes(tag as htmlTags.htmlTags) &&
6464
!svgTags.includes(tag)
6565
);
6666
};
@@ -99,7 +99,10 @@ export const getTag = (
9999
const namePath = path.get('openingElement').get('name');
100100
if (namePath.isJSXIdentifier()) {
101101
const { name } = namePath.node;
102-
if (!htmlTags.includes(name as HtmlTags) && !svgTags.includes(name)) {
102+
if (
103+
!htmlTags.includes(name as htmlTags.htmlTags) &&
104+
!svgTags.includes(name)
105+
) {
103106
return name === FRAGMENT
104107
? createIdentifier(state, FRAGMENT)
105108
: path.scope.hasBinding(name)

pnpm-lock.yaml

Lines changed: 2 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)