@hybridly/vite 0.7.0 → 0.7.2
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/index.cjs +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +6 -2
package/dist/index.cjs
CHANGED
|
@@ -666,15 +666,18 @@ async function getVueComponentsOptions(options, config) {
|
|
|
666
666
|
...shouldImportRadix ? [await RadixResolver(options?.vueComponents?.radixPrefix || "Radix")] : [],
|
|
667
667
|
ProvidedComponentListResolver(config),
|
|
668
668
|
HybridlyResolver(options, config)
|
|
669
|
-
]
|
|
669
|
+
].filter(Boolean)
|
|
670
670
|
},
|
|
671
671
|
options.vueComponents ?? {},
|
|
672
672
|
{ overwriteArray: false }
|
|
673
673
|
);
|
|
674
674
|
}
|
|
675
675
|
async function RadixResolver(prefix) {
|
|
676
|
-
|
|
677
|
-
|
|
676
|
+
try {
|
|
677
|
+
const radix = await importPackage("radix-vue/resolver");
|
|
678
|
+
return radix.default?.({ prefix }) ?? radix?.({ prefix });
|
|
679
|
+
} catch {
|
|
680
|
+
}
|
|
678
681
|
}
|
|
679
682
|
function HybridlyResolver(options, config) {
|
|
680
683
|
return [
|
package/dist/index.mjs
CHANGED
|
@@ -647,15 +647,18 @@ async function getVueComponentsOptions(options, config) {
|
|
|
647
647
|
...shouldImportRadix ? [await RadixResolver(options?.vueComponents?.radixPrefix || "Radix")] : [],
|
|
648
648
|
ProvidedComponentListResolver(config),
|
|
649
649
|
HybridlyResolver(options, config)
|
|
650
|
-
]
|
|
650
|
+
].filter(Boolean)
|
|
651
651
|
},
|
|
652
652
|
options.vueComponents ?? {},
|
|
653
653
|
{ overwriteArray: false }
|
|
654
654
|
);
|
|
655
655
|
}
|
|
656
656
|
async function RadixResolver(prefix) {
|
|
657
|
-
|
|
658
|
-
|
|
657
|
+
try {
|
|
658
|
+
const radix = await importPackage("radix-vue/resolver");
|
|
659
|
+
return radix.default?.({ prefix }) ?? radix?.({ prefix });
|
|
660
|
+
} catch {
|
|
661
|
+
}
|
|
659
662
|
}
|
|
660
663
|
function HybridlyResolver(options, config) {
|
|
661
664
|
return [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybridly/vite",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Vite plugin for Hybridly",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hybridly",
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"bugs": {
|
|
22
22
|
"url": "https://github.com/hybridly/hybridly/issues"
|
|
23
23
|
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"provenance": true,
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
24
28
|
"sideEffects": false,
|
|
25
29
|
"files": [
|
|
26
30
|
"dist",
|
|
@@ -51,7 +55,7 @@
|
|
|
51
55
|
"unplugin-icons": "^0.18.5",
|
|
52
56
|
"unplugin-vue-components": "^0.26.0",
|
|
53
57
|
"vite-plugin-run": "^0.5.1",
|
|
54
|
-
"@hybridly/core": "0.7.
|
|
58
|
+
"@hybridly/core": "0.7.2"
|
|
55
59
|
},
|
|
56
60
|
"devDependencies": {
|
|
57
61
|
"@iconify/json": "^2.2.191",
|