unplugin-vue-components 0.17.2 → 0.17.3

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __require
3
- } from "./chunk-PJJOEYQ7.mjs";
3
+ } from "./chunk-EKXJN6YJ.mjs";
4
4
 
5
5
  // src/core/utils.ts
6
6
  import { parse } from "path";
@@ -1,11 +1,7 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __defProps = Object.defineProperties;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
3
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
- var __getProtoOf = Object.getPrototypeOf;
9
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
7
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -21,29 +17,20 @@ var __spreadValues = (a, b) => {
21
17
  return a;
22
18
  };
23
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
25
- var __require = typeof require !== "undefined" ? require : (x) => {
20
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
21
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
22
+ }) : x)(function(x) {
23
+ if (typeof require !== "undefined")
24
+ return require.apply(this, arguments);
26
25
  throw new Error('Dynamic require of "' + x + '" is not supported');
27
- };
26
+ });
28
27
  var __commonJS = (cb, mod) => function __require2() {
29
28
  return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
30
29
  };
31
- var __reExport = (target, module, desc) => {
32
- if (module && typeof module === "object" || typeof module === "function") {
33
- for (let key of __getOwnPropNames(module))
34
- if (!__hasOwnProp.call(target, key) && key !== "default")
35
- __defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
36
- }
37
- return target;
38
- };
39
- var __toModule = (module) => {
40
- return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module);
41
- };
42
30
 
43
31
  export {
44
32
  __spreadValues,
45
33
  __spreadProps,
46
34
  __require,
47
- __commonJS,
48
- __toModule
35
+ __commonJS
49
36
  };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,36 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
21
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
22
+ }) : x)(function(x) {
23
+ if (typeof require !== "undefined")
24
+ return require.apply(this, arguments);
25
+ throw new Error('Dynamic require of "' + x + '" is not supported');
26
+ });
27
+ var __commonJS = (cb, mod) => function __require2() {
28
+ return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
29
+ };
30
+
31
+
32
+
33
+
34
+
35
+
36
+ exports.__spreadValues = __spreadValues; exports.__spreadProps = __spreadProps; exports.__require = __require; exports.__commonJS = __commonJS;
@@ -9,31 +9,24 @@
9
9
 
10
10
 
11
11
 
12
- var _chunkLWMWOXVQjs = require('./chunk-LWMWOXVQ.js');
12
+ var _chunkVBV6MMCWjs = require('./chunk-VBV6MMCW.js');
13
13
 
14
14
 
15
15
 
16
16
 
17
-
18
- var _chunk7T67WII5js = require('./chunk-7T67WII5.js');
19
-
20
- // src/index.ts
21
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
17
+ var _chunkHIJQIC5Vjs = require('./chunk-HIJQIC5V.js');
22
18
 
23
19
  // src/core/unplugin.ts
24
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
25
20
  var _unplugin = require('unplugin');
26
21
  var _pluginutils = require('@rollup/pluginutils');
27
22
  var _chokidar = require('chokidar'); var _chokidar2 = _interopRequireDefault(_chokidar);
28
23
 
29
24
  // src/core/context.ts
30
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
31
25
  var _path = require('path');
32
26
  var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
33
27
  var _utils = require('@antfu/utils');
34
28
 
35
29
  // src/core/options.ts
36
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
37
30
 
38
31
 
39
32
  var _localpkg = require('local-pkg');
@@ -56,7 +49,7 @@ function resolveOptions(options, root) {
56
49
  const resolved = Object.assign({}, defaultOptions, options);
57
50
  resolved.libraries = _utils.toArray.call(void 0, resolved.libraries).map((i) => typeof i === "string" ? { name: i } : i);
58
51
  resolved.resolvers = normalizeResolvers(resolved.resolvers);
59
- resolved.resolvers.push(...resolved.libraries.map((lib) => _chunkLWMWOXVQjs.LibraryResolver.call(void 0, lib)));
52
+ resolved.resolvers.push(...resolved.libraries.map((lib) => _chunkVBV6MMCWjs.LibraryResolver.call(void 0, lib)));
60
53
  resolved.extensions = _utils.toArray.call(void 0, resolved.extensions);
61
54
  if (resolved.globs) {
62
55
  resolved.globs = _utils.toArray.call(void 0, resolved.globs).map((glob) => _utils.slash.call(void 0, _path.resolve.call(void 0, root, glob)));
@@ -77,7 +70,7 @@ function resolveOptions(options, root) {
77
70
  function getVueVersion() {
78
71
  var _a;
79
72
  try {
80
- const vue = _chunk7T67WII5js.__require.call(void 0, "vue");
73
+ const vue = _chunkHIJQIC5Vjs.__require.call(void 0, "vue");
81
74
  const version = ((_a = vue == null ? void 0 : vue.default) == null ? void 0 : _a.version) || (vue == null ? void 0 : vue.version) || "3";
82
75
  return version.startsWith("2.") ? "vue2" : "vue3";
83
76
  } catch (e2) {
@@ -86,7 +79,6 @@ function getVueVersion() {
86
79
  }
87
80
 
88
81
  // src/core/fs/glob.ts
89
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
90
82
  var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);
91
83
 
92
84
  var debug = _debug2.default.call(void 0, "unplugin-vue-components:glob");
@@ -107,7 +99,6 @@ function searchComponents(ctx) {
107
99
  }
108
100
 
109
101
  // src/core/declaration.ts
110
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
111
102
 
112
103
  var _fs = require('fs');
113
104
 
@@ -117,10 +108,10 @@ function parseDeclaration(code) {
117
108
  return Object.fromEntries(Array.from(code.matchAll(/(?<!\/\/)\s+\s+['"]?(.+?)['"]?:\s(.+?)\n/g)).map((i) => [i[1], i[2]]));
118
109
  }
119
110
  async function generateDeclaration(ctx, root, filepath) {
120
- const imports = Object.fromEntries(Object.values(_chunk7T67WII5js.__spreadValues.call(void 0, _chunk7T67WII5js.__spreadValues.call(void 0, {}, ctx.componentNameMap), ctx.componentCustomMap)).map(({ path, name, importName }) => {
111
+ const imports = Object.fromEntries(Object.values(_chunkHIJQIC5Vjs.__spreadValues.call(void 0, _chunkHIJQIC5Vjs.__spreadValues.call(void 0, {}, ctx.componentNameMap), ctx.componentCustomMap)).map(({ path, name, importName }) => {
121
112
  if (!name)
122
113
  return void 0;
123
- path = _chunkLWMWOXVQjs.getTransformedPath.call(void 0, path, ctx);
114
+ path = _chunkVBV6MMCWjs.getTransformedPath.call(void 0, path, ctx);
124
115
  const related = _path.isAbsolute.call(void 0, path) ? `./${_path.relative.call(void 0, _path.dirname.call(void 0, filepath), path)}` : path;
125
116
  let entry = `typeof import('${_utils.slash.call(void 0, related)}')`;
126
117
  if (importName)
@@ -133,7 +124,7 @@ async function generateDeclaration(ctx, root, filepath) {
133
124
  return;
134
125
  const originalContent = _fs.existsSync.call(void 0, filepath) ? await _fs.promises.readFile(filepath, "utf-8") : "";
135
126
  const originalImports = parseDeclaration(originalContent);
136
- const lines = Object.entries(_chunk7T67WII5js.__spreadValues.call(void 0, _chunk7T67WII5js.__spreadValues.call(void 0, {}, originalImports), imports)).sort((a, b) => a[0].localeCompare(b[0])).map(([name, v]) => {
127
+ const lines = Object.entries(_chunkHIJQIC5Vjs.__spreadValues.call(void 0, _chunkHIJQIC5Vjs.__spreadValues.call(void 0, {}, originalImports), imports)).sort((a, b) => a[0].localeCompare(b[0])).map(([name, v]) => {
137
128
  if (!/^\w+$/.test(name))
138
129
  name = `'${name}'`;
139
130
  return `${name}: ${v}`;
@@ -155,12 +146,10 @@ export { }
155
146
  }
156
147
 
157
148
  // src/core/transformer.ts
158
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
159
149
 
160
150
  var _magicstring = require('magic-string'); var _magicstring2 = _interopRequireDefault(_magicstring);
161
151
 
162
152
  // src/core/transforms/component.ts
163
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
164
153
 
165
154
  var debug2 = _debug2.default.call(void 0, "unplugin-vue-components:transform:component");
166
155
  var resolveVue2 = (code, s) => {
@@ -198,12 +187,12 @@ async function transformComponent(code, transformer, s, ctx, sfcPath) {
198
187
  const results = transformer === "vue2" ? resolveVue2(code, s) : resolveVue3(code, s);
199
188
  for (const { rawName, replace } of results) {
200
189
  debug2(`| ${rawName}`);
201
- const name = _chunkLWMWOXVQjs.pascalCase.call(void 0, rawName);
190
+ const name = _chunkVBV6MMCWjs.pascalCase.call(void 0, rawName);
202
191
  ctx.updateUsageMap(sfcPath, [name]);
203
192
  const component = await ctx.findComponent(name, "component", [sfcPath]);
204
193
  if (component) {
205
194
  const varName = `__unplugin_components_${no}`;
206
- s.prepend(`${_chunkLWMWOXVQjs.stringifyComponentImport.call(void 0, _chunk7T67WII5js.__spreadProps.call(void 0, _chunk7T67WII5js.__spreadValues.call(void 0, {}, component), { name: varName }), ctx)};
195
+ s.prepend(`${_chunkVBV6MMCWjs.stringifyComponentImport.call(void 0, _chunkHIJQIC5Vjs.__spreadProps.call(void 0, _chunkHIJQIC5Vjs.__spreadValues.call(void 0, {}, component), { name: varName }), ctx)};
207
196
  `);
208
197
  no += 1;
209
198
  replace(varName);
@@ -213,11 +202,9 @@ async function transformComponent(code, transformer, s, ctx, sfcPath) {
213
202
  }
214
203
 
215
204
  // src/core/transforms/directive/index.ts
216
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
217
205
 
218
206
 
219
207
  // src/core/transforms/directive/vue2.ts
220
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
221
208
 
222
209
  var getRenderFnStart = (ast) => {
223
210
  const renderFn = ast.program.body.find((node) => node.type === "VariableDeclaration" && node.declarations[0].id.type === "Identifier" && node.declarations[0].id.name === "render");
@@ -272,7 +259,6 @@ this.$options.directives["${name}"] = ${resolved};`);
272
259
  }
273
260
 
274
261
  // src/core/transforms/directive/vue3.ts
275
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
276
262
  function resolveVue32(code, s) {
277
263
  const results = [];
278
264
  for (const match of code.matchAll(/_resolveDirective\("(.+?)"\)/g)) {
@@ -296,13 +282,13 @@ async function transformDirective(code, transformer, s, ctx, sfcPath) {
296
282
  const results = await (transformer === "vue2" ? resolveVue22(code, s) : resolveVue32(code, s));
297
283
  for (const { rawName, replace } of results) {
298
284
  debug3(`| ${rawName}`);
299
- const name = _chunkLWMWOXVQjs.pascalCase.call(void 0, rawName);
285
+ const name = _chunkVBV6MMCWjs.pascalCase.call(void 0, rawName);
300
286
  ctx.updateUsageMap(sfcPath, [name]);
301
287
  const directive = await ctx.findComponent(name, "directive", [sfcPath]);
302
288
  if (!directive)
303
289
  continue;
304
290
  const varName = `__unplugin_directives_${no}`;
305
- s.prepend(`${_chunkLWMWOXVQjs.stringifyComponentImport.call(void 0, _chunk7T67WII5js.__spreadProps.call(void 0, _chunk7T67WII5js.__spreadValues.call(void 0, {}, directive), { name: varName }), ctx)};
291
+ s.prepend(`${_chunkVBV6MMCWjs.stringifyComponentImport.call(void 0, _chunkHIJQIC5Vjs.__spreadProps.call(void 0, _chunkHIJQIC5Vjs.__spreadValues.call(void 0, {}, directive), { name: varName }), ctx)};
306
292
  `);
307
293
  no += 1;
308
294
  replace(varName);
@@ -321,7 +307,7 @@ function tranformer(ctx, transformer) {
321
307
  await transformComponent(code, transformer, s, ctx, sfcPath);
322
308
  if (ctx.options.directives)
323
309
  await transformDirective(code, transformer, s, ctx, sfcPath);
324
- s.prepend(_chunkLWMWOXVQjs.DISABLE_COMMENT);
310
+ s.prepend(_chunkVBV6MMCWjs.DISABLE_COMMENT);
325
311
  const result = { code: s.toString() };
326
312
  if (ctx.sourcemap)
327
313
  result.map = s.generateMap({ source: id, includeContent: true });
@@ -365,7 +351,7 @@ var Context = class {
365
351
  this.transformer = tranformer(this, name || "vue3");
366
352
  }
367
353
  transform(code, id) {
368
- const { path, query } = _chunkLWMWOXVQjs.parseId.call(void 0, id);
354
+ const { path, query } = _chunkVBV6MMCWjs.parseId.call(void 0, id);
369
355
  return this.transformer(code, id, path, query);
370
356
  }
371
357
  setupViteServer(server) {
@@ -377,13 +363,13 @@ var Context = class {
377
363
  setupWatcher(watcher) {
378
364
  const { globs } = this.options;
379
365
  watcher.on("unlink", (path) => {
380
- if (!_chunkLWMWOXVQjs.matchGlobs.call(void 0, path, globs))
366
+ if (!_chunkVBV6MMCWjs.matchGlobs.call(void 0, path, globs))
381
367
  return;
382
368
  this.removeComponents(path);
383
369
  this.onUpdate(path);
384
370
  });
385
371
  watcher.on("add", (path) => {
386
- if (!_chunkLWMWOXVQjs.matchGlobs.call(void 0, path, globs))
372
+ if (!_chunkVBV6MMCWjs.matchGlobs.call(void 0, path, globs))
387
373
  return;
388
374
  this.addComponents(path);
389
375
  this.onUpdate(path);
@@ -429,7 +415,7 @@ var Context = class {
429
415
  updates: []
430
416
  };
431
417
  const timestamp = +new Date();
432
- const name = _chunkLWMWOXVQjs.pascalCase.call(void 0, _chunkLWMWOXVQjs.getNameFromFilePath.call(void 0, path, this.options));
418
+ const name = _chunkVBV6MMCWjs.pascalCase.call(void 0, _chunkVBV6MMCWjs.getNameFromFilePath.call(void 0, path, this.options));
433
419
  Object.entries(this._componentUsageMap).forEach(([key, values]) => {
434
420
  if (values.has(name)) {
435
421
  const r = `/${_utils.slash.call(void 0, _path.relative.call(void 0, this.root, key))}`;
@@ -447,7 +433,7 @@ var Context = class {
447
433
  updateComponentNameMap() {
448
434
  this._componentNameMap = {};
449
435
  Array.from(this._componentPaths).forEach((path) => {
450
- const name = _chunkLWMWOXVQjs.pascalCase.call(void 0, _chunkLWMWOXVQjs.getNameFromFilePath.call(void 0, path, this.options));
436
+ const name = _chunkVBV6MMCWjs.pascalCase.call(void 0, _chunkVBV6MMCWjs.getNameFromFilePath.call(void 0, path, this.options));
451
437
  if (this._componentNameMap[name] && !this.options.allowOverrides) {
452
438
  console.warn(`[unplugin-vue-components] component "${name}"(${path}) has naming conflicts with other components, ignored.`);
453
439
  return;
@@ -475,7 +461,7 @@ var Context = class {
475
461
  this.addCustomComponents(info);
476
462
  return info;
477
463
  } else {
478
- info = _chunk7T67WII5js.__spreadValues.call(void 0, {
464
+ info = _chunkHIJQIC5Vjs.__spreadValues.call(void 0, {
479
465
  name
480
466
  }, result);
481
467
  this.addCustomComponents(info);
@@ -487,7 +473,7 @@ var Context = class {
487
473
  }
488
474
  normalizePath(path) {
489
475
  var _a, _b, _c;
490
- return _chunkLWMWOXVQjs.resolveAlias.call(void 0, path, ((_b = (_a = this.viteConfig) == null ? void 0 : _a.resolve) == null ? void 0 : _b.alias) || ((_c = this.viteConfig) == null ? void 0 : _c.alias) || []);
476
+ return _chunkVBV6MMCWjs.resolveAlias.call(void 0, path, ((_b = (_a = this.viteConfig) == null ? void 0 : _a.resolve) == null ? void 0 : _b.alias) || ((_c = this.viteConfig) == null ? void 0 : _c.alias) || []);
491
477
  }
492
478
  relative(path) {
493
479
  if (path.startsWith("/") && !path.startsWith(this.root))
@@ -526,7 +512,7 @@ var unplugin_default = _unplugin.createUnplugin.call(void 0, (options = {}) => {
526
512
  return filter(id);
527
513
  },
528
514
  async transform(code, id) {
529
- if (!_chunkLWMWOXVQjs.shouldTransform.call(void 0, code))
515
+ if (!_chunkVBV6MMCWjs.shouldTransform.call(void 0, code))
530
516
  return null;
531
517
  try {
532
518
  const result = await ctx.transform(code, id);
@@ -1,17 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
-
4
- var _chunk7T67WII5js = require('./chunk-7T67WII5.js');
3
+ var _chunkHIJQIC5Vjs = require('./chunk-HIJQIC5V.js');
5
4
 
6
5
  // src/core/utils.ts
7
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
8
6
  var _path = require('path');
9
7
  var _minimatch = require('minimatch'); var _minimatch2 = _interopRequireDefault(_minimatch);
10
8
  var _resolve = require('resolve'); var _resolve2 = _interopRequireDefault(_resolve);
11
9
  var _utils = require('@antfu/utils');
12
10
 
13
11
  // src/core/constants.ts
14
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
15
12
  var DISABLE_COMMENT = "/* unplugin-vue-components disabled */";
16
13
 
17
14
  // src/core/utils.ts
@@ -118,7 +115,7 @@ function resolveAlias(filepath, alias = []) {
118
115
  }
119
116
  function getPkgVersion(pkgName, defaultVersion) {
120
117
  try {
121
- return _chunk7T67WII5js.__require.call(void 0, `${pkgName}/package.json`).version;
118
+ return _chunkHIJQIC5Vjs.__require.call(void 0, `${pkgName}/package.json`).version;
122
119
  } catch (err) {
123
120
  console.error(err);
124
121
  return defaultVersion;
@@ -136,7 +133,6 @@ function resolveImportPath(importName) {
136
133
  }
137
134
 
138
135
  // src/core/helpers/libraryResolver.ts
139
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
140
136
  var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
141
137
 
142
138
  var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
@@ -9,12 +9,12 @@ import {
9
9
  resolveAlias,
10
10
  shouldTransform,
11
11
  stringifyComponentImport
12
- } from "./chunk-GZWBUYKE.mjs";
12
+ } from "./chunk-CX5JV2R3.mjs";
13
13
  import {
14
14
  __require,
15
15
  __spreadProps,
16
16
  __spreadValues
17
- } from "./chunk-PJJOEYQ7.mjs";
17
+ } from "./chunk-EKXJN6YJ.mjs";
18
18
 
19
19
  // src/core/unplugin.ts
20
20
  import { createUnplugin } from "unplugin";
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkC3DFJGRWjs = require('./chunk-C3DFJGRW.js');
3
+ var _chunkRTE6NPCNjs = require('./chunk-RTE6NPCN.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkLWMWOXVQjs = require('./chunk-LWMWOXVQ.js');
9
- require('./chunk-LKFHSEPW.js');
10
- require('./chunk-7T67WII5.js');
8
+ var _chunkVBV6MMCWjs = require('./chunk-VBV6MMCW.js');
9
+ require('./chunk-GGNOJ77I.js');
10
+ require('./chunk-HIJQIC5V.js');
11
11
 
12
12
 
13
13
 
14
14
 
15
15
 
16
- exports.camelCase = _chunkLWMWOXVQjs.camelCase; exports.default = _chunkC3DFJGRWjs.unplugin_default; exports.kebabCase = _chunkLWMWOXVQjs.kebabCase; exports.pascalCase = _chunkLWMWOXVQjs.pascalCase;
16
+ exports.camelCase = _chunkVBV6MMCWjs.camelCase; exports.default = _chunkRTE6NPCNjs.unplugin_default; exports.kebabCase = _chunkVBV6MMCWjs.kebabCase; exports.pascalCase = _chunkVBV6MMCWjs.pascalCase;
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-NUKCR557.mjs";
3
+ } from "./chunk-YFCNNJ2H.mjs";
4
4
  import {
5
5
  camelCase,
6
6
  kebabCase,
7
7
  pascalCase
8
- } from "./chunk-GZWBUYKE.mjs";
8
+ } from "./chunk-CX5JV2R3.mjs";
9
9
  import "./chunk-WBQAMGXK.mjs";
10
- import "./chunk-PJJOEYQ7.mjs";
10
+ import "./chunk-EKXJN6YJ.mjs";
11
11
  export {
12
12
  camelCase,
13
13
  unplugin_default as default,
package/dist/nuxt.js CHANGED
@@ -1,22 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkC3DFJGRWjs = require('./chunk-C3DFJGRW.js');
4
- require('./chunk-LWMWOXVQ.js');
5
- require('./chunk-LKFHSEPW.js');
6
-
7
-
8
- var _chunk7T67WII5js = require('./chunk-7T67WII5.js');
3
+ var _chunkRTE6NPCNjs = require('./chunk-RTE6NPCN.js');
4
+ require('./chunk-VBV6MMCW.js');
5
+ require('./chunk-GGNOJ77I.js');
6
+ require('./chunk-HIJQIC5V.js');
9
7
 
10
8
  // src/nuxt.ts
11
- _chunk7T67WII5js.init_cjs_shims.call(void 0, );
12
9
  function nuxt_default(options) {
13
10
  this.extendBuild((config) => {
14
11
  config.plugins = config.plugins || [];
15
- config.plugins.unshift(_chunkC3DFJGRWjs.unplugin_default.webpack(options));
12
+ config.plugins.unshift(_chunkRTE6NPCNjs.unplugin_default.webpack(options));
16
13
  });
17
14
  this.nuxt.hook("vite:extend", async (vite) => {
18
15
  vite.config.plugins = vite.config.plugins || [];
19
- vite.config.plugins.push(_chunkC3DFJGRWjs.unplugin_default.vite(options));
16
+ vite.config.plugins.push(_chunkRTE6NPCNjs.unplugin_default.vite(options));
20
17
  });
21
18
  }
22
19
 
package/dist/nuxt.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  unplugin_default
3
- } from "./chunk-NUKCR557.mjs";
4
- import "./chunk-GZWBUYKE.mjs";
3
+ } from "./chunk-YFCNNJ2H.mjs";
4
+ import "./chunk-CX5JV2R3.mjs";
5
5
  import "./chunk-WBQAMGXK.mjs";
6
- import "./chunk-PJJOEYQ7.mjs";
6
+ import "./chunk-EKXJN6YJ.mjs";
7
7
 
8
8
  // src/nuxt.ts
9
9
  function nuxt_default(options) {
@@ -281,7 +281,23 @@ declare function VueUseComponentsResolver(): ComponentResolver;
281
281
  */
282
282
  declare function QuasarResolver(): ComponentResolver;
283
283
 
284
+ interface DevResolverOptions {
285
+ /**
286
+ * bring in components and styles
287
+ *
288
+ * @default true
289
+ */
290
+ importStyle?: boolean;
291
+ /**
292
+ * auto import for directives
293
+ *
294
+ * @default true
295
+ */
296
+ directives?: boolean;
297
+ }
298
+ declare function DevUiResolver(options?: DevResolverOptions): ComponentResolver[];
299
+
284
300
  declare function tryLoadVeturTags(name: string): string[] | undefined;
285
301
  declare function LibraryResolver(options: UILibraryOptions): ComponentResolverObject;
286
302
 
287
- export { AntDesignVueResolver, AntDesignVueResolverOptions, ElementPlusResolver, ElementPlusResolverOptions, ElementUiResolver, ElementUiResolverOptions, HeadlessUiResolver, IduxResolver, IduxResolverOptions, LibraryResolver, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, VuetifyResolver, getResolved, tryLoadVeturTags };
303
+ export { AntDesignVueResolver, AntDesignVueResolverOptions, DevResolverOptions, DevUiResolver, ElementPlusResolver, ElementPlusResolverOptions, ElementUiResolver, ElementUiResolverOptions, HeadlessUiResolver, IduxResolver, IduxResolverOptions, LibraryResolver, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, VuetifyResolver, getResolved, tryLoadVeturTags };