fix: missing

This commit is contained in:
Dunqing 2023-09-13 18:40:25 +08:00
parent 584e8b7929
commit cd9f8238fe
2 changed files with 6 additions and 7 deletions

View File

@ -1,14 +1,13 @@
diff --git a/dist/index.js b/dist/index.js
index 8b8e0d078e27474da1cf58ce3fef1d7acefb1cd4..0753137ff48b7d34338db98c3568c82e9798b3b7 100644
index 8b8e0d078e27474da1cf58ce3fef1d7acefb1cd4..314b23766204dcc6d2873e8ea654dcc3040ba0a5 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -146,9 +146,10 @@ async function removeTypesFromVueSfcScript(code, fileName, script, templateAst,
@@ -146,9 +146,9 @@ async function removeTypesFromVueSfcScript(code, fileName, script, templateAst,
(0, import_template_ast_types.traverse)(templateAst, {
enter(node) {
if ((0, import_template_ast_types.isSimpleExpressionNode)(node) && !node.isStatic) {
- expressions.add(node.content);
+ const content = node.content.trim();
+ expressions.add(`[${content}]`);
+ expressions.add(`[${node.content}]`);
} else if ((0, import_template_ast_types.isComponentNode)(node)) {
- expressions.add(node.tag);
+ expressions.add(`[${node.tag}]`);

View File

@ -6,7 +6,7 @@ settings:
patchedDependencies:
detype@0.6.3:
hash: 6ktqwatz2smalcxwhreeceligi
hash: tlxqopreogk7nma7uu7ixdzk3u
path: patches/detype@0.6.3.patch
importers:
@ -245,7 +245,7 @@ importers:
version: 0.34.3(vitest@0.34.3)
detype:
specifier: ^0.6.3
version: 0.6.3(patch_hash=6ktqwatz2smalcxwhreeceligi)
version: 0.6.3(patch_hash=tlxqopreogk7nma7uu7ixdzk3u)
tsup:
specifier: ^7.2.0
version: 7.2.0(ts-node@10.9.1)(typescript@5.2.2)
@ -3978,7 +3978,7 @@ packages:
resolution: {integrity: sha512-M1Ob1zPSIvlARiJUkKqvAZ3VAqQY6Jcuth/pBKQ2b1dX/Qx0OnJ8Vux6J2H5PTMQeRzWrrbTu70VxBfv/OPDJA==}
dev: false
/detype@0.6.3(patch_hash=6ktqwatz2smalcxwhreeceligi):
/detype@0.6.3(patch_hash=tlxqopreogk7nma7uu7ixdzk3u):
resolution: {integrity: sha512-b42ytoZGAOo2U9V4zAMqtiWHgeG8F6kRQsg1E6n0uARMxOItxlWWS+pSsNbvmejInhfui0Q0mn9Bd4lwqhLaSA==}
engines: {node: '>=14.19.3'}
hasBin: true