unplugin-vue-components 0.19.1 → 0.19.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.
@@ -41,6 +41,13 @@ var TypeImportPresets = [
41
41
  "RouterView",
42
42
  "RouterLink"
43
43
  ]
44
+ },
45
+ {
46
+ from: "vue-starport",
47
+ names: [
48
+ "Starport",
49
+ "StarportCarrier"
50
+ ]
44
51
  }
45
52
  ];
46
53
 
@@ -71,9 +78,6 @@ function resolveOptions(options, root) {
71
78
  const resolved = Object.assign({}, defaultOptions, options);
72
79
  resolved.resolvers = normalizeResolvers(resolved.resolvers);
73
80
  resolved.extensions = _utils.toArray.call(void 0, resolved.extensions);
74
- if (!resolved.types)
75
- resolved.types = detectTypeImports();
76
- resolved.types = resolved.types || [];
77
81
  if (resolved.globs) {
78
82
  resolved.globs = _utils.toArray.call(void 0, resolved.globs).map((glob) => _utils.slash.call(void 0, _path.resolve.call(void 0, root, glob)));
79
83
  resolved.resolvedDirs = [];
@@ -86,6 +90,9 @@ function resolveOptions(options, root) {
86
90
  throw new Error("[unplugin-vue-components] `extensions` option is required to search for components");
87
91
  }
88
92
  resolved.dts = !resolved.dts ? false : _path.resolve.call(void 0, root, typeof resolved.dts === "string" ? resolved.dts : "components.d.ts");
93
+ if (!resolved.types && resolved.dts)
94
+ resolved.types = detectTypeImports();
95
+ resolved.types = resolved.types || [];
89
96
  resolved.root = root;
90
97
  resolved.transformer = options.transformer || getVueVersion() || "vue3";
91
98
  resolved.directives = typeof options.directives === "boolean" ? options.directives : !resolved.resolvers.some((i) => i.type === "directive") ? false : getVueVersion() === "vue3";
@@ -41,6 +41,13 @@ var TypeImportPresets = [
41
41
  "RouterView",
42
42
  "RouterLink"
43
43
  ]
44
+ },
45
+ {
46
+ from: "vue-starport",
47
+ names: [
48
+ "Starport",
49
+ "StarportCarrier"
50
+ ]
44
51
  }
45
52
  ];
46
53
 
@@ -71,9 +78,6 @@ function resolveOptions(options, root) {
71
78
  const resolved = Object.assign({}, defaultOptions, options);
72
79
  resolved.resolvers = normalizeResolvers(resolved.resolvers);
73
80
  resolved.extensions = toArray(resolved.extensions);
74
- if (!resolved.types)
75
- resolved.types = detectTypeImports();
76
- resolved.types = resolved.types || [];
77
81
  if (resolved.globs) {
78
82
  resolved.globs = toArray(resolved.globs).map((glob) => slash(resolve(root, glob)));
79
83
  resolved.resolvedDirs = [];
@@ -86,6 +90,9 @@ function resolveOptions(options, root) {
86
90
  throw new Error("[unplugin-vue-components] `extensions` option is required to search for components");
87
91
  }
88
92
  resolved.dts = !resolved.dts ? false : resolve(root, typeof resolved.dts === "string" ? resolved.dts : "components.d.ts");
93
+ if (!resolved.types && resolved.dts)
94
+ resolved.types = detectTypeImports();
95
+ resolved.types = resolved.types || [];
89
96
  resolved.root = root;
90
97
  resolved.transformer = options.transformer || getVueVersion() || "vue3";
91
98
  resolved.directives = typeof options.directives === "boolean" ? options.directives : !resolved.resolvers.some((i) => i.type === "directive") ? false : getVueVersion() === "vue3";
package/dist/esbuild.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkR3CZJVQLjs = require('./chunk-R3CZJVQL.js');
3
+ var _chunk2YWHXQTGjs = require('./chunk-2YWHXQTG.js');
4
4
  require('./chunk-TMX2H7L5.js');
5
5
  require('./chunk-6F4PWJZI.js');
6
6
 
7
7
  // src/esbuild.ts
8
- var esbuild_default = _chunkR3CZJVQLjs.unplugin_default.esbuild;
8
+ var esbuild_default = _chunk2YWHXQTGjs.unplugin_default.esbuild;
9
9
 
10
10
 
11
11
  module.exports = esbuild_default;
package/dist/esbuild.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-I4UZ5KRN.mjs";
3
+ } from "./chunk-U6SIESJN.mjs";
4
4
  import "./chunk-JIADFQ53.mjs";
5
5
  import "./chunk-WBQAMGXK.mjs";
6
6
 
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkR3CZJVQLjs = require('./chunk-R3CZJVQL.js');
3
+ var _chunk2YWHXQTGjs = require('./chunk-2YWHXQTG.js');
4
4
 
5
5
 
6
6
 
@@ -12,4 +12,4 @@ require('./chunk-6F4PWJZI.js');
12
12
 
13
13
 
14
14
 
15
- exports.camelCase = _chunkTMX2H7L5js.camelCase; exports.default = _chunkR3CZJVQLjs.unplugin_default; exports.kebabCase = _chunkTMX2H7L5js.kebabCase; exports.pascalCase = _chunkTMX2H7L5js.pascalCase;
15
+ exports.camelCase = _chunkTMX2H7L5js.camelCase; exports.default = _chunk2YWHXQTGjs.unplugin_default; exports.kebabCase = _chunkTMX2H7L5js.kebabCase; exports.pascalCase = _chunkTMX2H7L5js.pascalCase;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-I4UZ5KRN.mjs";
3
+ } from "./chunk-U6SIESJN.mjs";
4
4
  import {
5
5
  camelCase,
6
6
  kebabCase,
package/dist/nuxt.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkR3CZJVQLjs = require('./chunk-R3CZJVQL.js');
3
+ var _chunk2YWHXQTGjs = require('./chunk-2YWHXQTG.js');
4
4
  require('./chunk-TMX2H7L5.js');
5
5
  require('./chunk-6F4PWJZI.js');
6
6
 
@@ -8,11 +8,11 @@ require('./chunk-6F4PWJZI.js');
8
8
  function nuxt_default(options) {
9
9
  this.extendBuild((config) => {
10
10
  config.plugins = config.plugins || [];
11
- config.plugins.unshift(_chunkR3CZJVQLjs.unplugin_default.webpack(options));
11
+ config.plugins.unshift(_chunk2YWHXQTGjs.unplugin_default.webpack(options));
12
12
  });
13
13
  this.nuxt.hook("vite:extend", async (vite) => {
14
14
  vite.config.plugins = vite.config.plugins || [];
15
- vite.config.plugins.push(_chunkR3CZJVQLjs.unplugin_default.vite(options));
15
+ vite.config.plugins.push(_chunk2YWHXQTGjs.unplugin_default.vite(options));
16
16
  });
17
17
  }
18
18
 
package/dist/nuxt.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-I4UZ5KRN.mjs";
3
+ } from "./chunk-U6SIESJN.mjs";
4
4
  import "./chunk-JIADFQ53.mjs";
5
5
  import "./chunk-WBQAMGXK.mjs";
6
6
 
package/dist/resolvers.js CHANGED
@@ -1144,7 +1144,7 @@ function ArcoResolver(options = {}) {
1144
1144
  const importStyle = (_a = options.importStyle) != null ? _a : "css";
1145
1145
  const importName = name.slice(1);
1146
1146
  const config = {
1147
- as: importName,
1147
+ name: importName,
1148
1148
  from: "@arco-design/web-vue"
1149
1149
  };
1150
1150
  if (options.sideEffect !== false)
@@ -1144,7 +1144,7 @@ function ArcoResolver(options = {}) {
1144
1144
  const importStyle = (_a = options.importStyle) != null ? _a : "css";
1145
1145
  const importName = name.slice(1);
1146
1146
  const config = {
1147
- as: importName,
1147
+ name: importName,
1148
1148
  from: "@arco-design/web-vue"
1149
1149
  };
1150
1150
  if (options.sideEffect !== false)
package/dist/rollup.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkR3CZJVQLjs = require('./chunk-R3CZJVQL.js');
3
+ var _chunk2YWHXQTGjs = require('./chunk-2YWHXQTG.js');
4
4
  require('./chunk-TMX2H7L5.js');
5
5
  require('./chunk-6F4PWJZI.js');
6
6
 
7
7
  // src/rollup.ts
8
- var rollup_default = _chunkR3CZJVQLjs.unplugin_default.rollup;
8
+ var rollup_default = _chunk2YWHXQTGjs.unplugin_default.rollup;
9
9
 
10
10
 
11
11
  module.exports = rollup_default;
package/dist/rollup.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-I4UZ5KRN.mjs";
3
+ } from "./chunk-U6SIESJN.mjs";
4
4
  import "./chunk-JIADFQ53.mjs";
5
5
  import "./chunk-WBQAMGXK.mjs";
6
6
 
package/dist/vite.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkR3CZJVQLjs = require('./chunk-R3CZJVQL.js');
3
+ var _chunk2YWHXQTGjs = require('./chunk-2YWHXQTG.js');
4
4
  require('./chunk-TMX2H7L5.js');
5
5
  require('./chunk-6F4PWJZI.js');
6
6
 
7
7
  // src/vite.ts
8
- var vite_default = _chunkR3CZJVQLjs.unplugin_default.vite;
8
+ var vite_default = _chunk2YWHXQTGjs.unplugin_default.vite;
9
9
 
10
10
 
11
11
  module.exports = vite_default;
package/dist/vite.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-I4UZ5KRN.mjs";
3
+ } from "./chunk-U6SIESJN.mjs";
4
4
  import "./chunk-JIADFQ53.mjs";
5
5
  import "./chunk-WBQAMGXK.mjs";
6
6
 
package/dist/webpack.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkR3CZJVQLjs = require('./chunk-R3CZJVQL.js');
3
+ var _chunk2YWHXQTGjs = require('./chunk-2YWHXQTG.js');
4
4
  require('./chunk-TMX2H7L5.js');
5
5
  require('./chunk-6F4PWJZI.js');
6
6
 
7
7
  // src/webpack.ts
8
- var webpack_default = _chunkR3CZJVQLjs.unplugin_default.webpack;
8
+ var webpack_default = _chunk2YWHXQTGjs.unplugin_default.webpack;
9
9
 
10
10
 
11
11
  module.exports = webpack_default;
package/dist/webpack.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-I4UZ5KRN.mjs";
3
+ } from "./chunk-U6SIESJN.mjs";
4
4
  import "./chunk-JIADFQ53.mjs";
5
5
  import "./chunk-WBQAMGXK.mjs";
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-vue-components",
3
- "version": "0.19.1",
3
+ "version": "0.19.2",
4
4
  "packageManager": "pnpm@6.32.3",
5
5
  "description": "Components auto importing for Vue",
6
6
  "homepage": "https://github.com/antfu/unplugin-vue-components",