@ubean/vite 0.1.4 → 0.1.6
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.js +8 -3
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -556,7 +556,12 @@ function ubeanVuePlugin(_options) {
|
|
|
556
556
|
from: "ubean/runtime/vue"
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
|
-
const
|
|
559
|
+
const dynamicResolvers = [ubeanComponentsResolver, (name) => {
|
|
560
|
+
for (const resolver of getComponentResolvers()) {
|
|
561
|
+
const result = typeof resolver === "function" ? resolver(name) : resolver.resolve(name);
|
|
562
|
+
if (result) return result;
|
|
563
|
+
}
|
|
564
|
+
}];
|
|
560
565
|
if (componentAutoImportEnabled) {
|
|
561
566
|
const extensions = ["vue"];
|
|
562
567
|
const includePatterns = [/\.vue$/, /\.vue\?vue/];
|
|
@@ -572,11 +577,11 @@ function ubeanVuePlugin(_options) {
|
|
|
572
577
|
directoryAsNamespace,
|
|
573
578
|
dts: join(dtsDir, "components.d.ts"),
|
|
574
579
|
deep: true,
|
|
575
|
-
resolvers:
|
|
580
|
+
resolvers: dynamicResolvers
|
|
576
581
|
}));
|
|
577
582
|
} else plugins.push(Components({
|
|
578
583
|
dts: true,
|
|
579
|
-
resolvers:
|
|
584
|
+
resolvers: dynamicResolvers
|
|
580
585
|
}));
|
|
581
586
|
return plugins;
|
|
582
587
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ubean/vite",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Vue-specific Vite plugin for ubean (ubeanVuePlugin, virtual modules: pages, app, server, client-entry)",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"unplugin-auto-import": "21.0.0",
|
|
22
22
|
"unplugin-vue-components": "^32.1.0",
|
|
23
23
|
"unplugin-vue-markdown": "^32.0.0",
|
|
24
|
-
"@ubean/
|
|
25
|
-
"@ubean/
|
|
26
|
-
"@ubean/
|
|
27
|
-
"@ubean/
|
|
28
|
-
"@ubean/runtime": "0.1.
|
|
29
|
-
"@ubean/
|
|
24
|
+
"@ubean/build": "0.1.6",
|
|
25
|
+
"@ubean/config": "0.1.6",
|
|
26
|
+
"@ubean/routing": "0.1.6",
|
|
27
|
+
"@ubean/markdown": "0.1.6",
|
|
28
|
+
"@ubean/runtime": "0.1.6",
|
|
29
|
+
"@ubean/auto-imports": "0.1.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^26.1.1",
|