unplugin-kubb 5.0.0-beta.4 → 5.0.0-beta.40

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.
Files changed (65) hide show
  1. package/README.md +21 -23
  2. package/dist/astro.cjs +1 -1
  3. package/dist/astro.cjs.map +1 -1
  4. package/dist/astro.d.ts +1 -1
  5. package/dist/astro.js +1 -1
  6. package/dist/astro.js.map +1 -1
  7. package/dist/esbuild.cjs +1 -1
  8. package/dist/esbuild.cjs.map +1 -1
  9. package/dist/esbuild.d.ts +2 -3
  10. package/dist/esbuild.js +1 -1
  11. package/dist/esbuild.js.map +1 -1
  12. package/dist/farm.cjs +1 -1
  13. package/dist/farm.cjs.map +1 -1
  14. package/dist/farm.d.ts +2 -3
  15. package/dist/farm.js +1 -1
  16. package/dist/farm.js.map +1 -1
  17. package/dist/index.cjs +2 -2
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.ts +2 -3
  20. package/dist/index.js +2 -2
  21. package/dist/index.js.map +1 -1
  22. package/dist/nuxt.cjs +1 -1
  23. package/dist/nuxt.cjs.map +1 -1
  24. package/dist/nuxt.d.ts +2 -4
  25. package/dist/nuxt.js +1 -1
  26. package/dist/nuxt.js.map +1 -1
  27. package/dist/rolldown.cjs +1 -1
  28. package/dist/rolldown.cjs.map +1 -1
  29. package/dist/rolldown.d.ts +2 -3
  30. package/dist/rolldown.js +1 -1
  31. package/dist/rolldown.js.map +1 -1
  32. package/dist/rollup.cjs +1 -1
  33. package/dist/rollup.cjs.map +1 -1
  34. package/dist/rollup.d.ts +2 -3
  35. package/dist/rollup.js +1 -1
  36. package/dist/rollup.js.map +1 -1
  37. package/dist/rspack.cjs +1 -1
  38. package/dist/rspack.cjs.map +1 -1
  39. package/dist/rspack.d.ts +1 -1
  40. package/dist/rspack.js +1 -1
  41. package/dist/rspack.js.map +1 -1
  42. package/dist/types.d.ts +1 -1
  43. package/dist/{unpluginFactory-CtJfHKS_.js → unpluginFactory-ChuHVuk8.js} +88 -63
  44. package/dist/unpluginFactory-ChuHVuk8.js.map +1 -0
  45. package/dist/{unpluginFactory-C2i5Ff7I.cjs → unpluginFactory-G0NB0oyN.cjs} +85 -66
  46. package/dist/unpluginFactory-G0NB0oyN.cjs.map +1 -0
  47. package/dist/unpluginFactory.cjs +1 -1
  48. package/dist/unpluginFactory.d.ts +1 -1
  49. package/dist/unpluginFactory.js +1 -1
  50. package/dist/vite.cjs +1 -1
  51. package/dist/vite.cjs.map +1 -1
  52. package/dist/vite.d.ts +2 -3
  53. package/dist/vite.js +1 -1
  54. package/dist/vite.js.map +1 -1
  55. package/dist/webpack.cjs +1 -1
  56. package/dist/webpack.cjs.map +1 -1
  57. package/dist/webpack.d.ts +1 -1
  58. package/dist/webpack.js +1 -1
  59. package/dist/webpack.js.map +1 -1
  60. package/package.json +15 -17
  61. package/src/nuxt.ts +0 -2
  62. package/src/unpluginFactory.ts +91 -87
  63. package/dist/unpluginFactory-C2i5Ff7I.cjs.map +0 -1
  64. package/dist/unpluginFactory-CtJfHKS_.js.map +0 -1
  65. /package/dist/{chunk--u3MIqq1.js → chunk-C0LytTxp.js} +0 -0
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  <div align="center">
2
- <h1>Kubb Unplugin</h1>
3
2
  <a href="https://kubb.dev" target="_blank" rel="noopener noreferrer">
4
- <img width="180" src="https://raw.githubusercontent.com/kubb-labs/kubb/main/assets/logo.png" alt="Kubb logo">
3
+ <img src="https://kubb.dev/og.png" alt="Kubb banner">
5
4
  </a>
6
5
 
7
6
  [![npm version][npm-version-src]][npm-version-href]
@@ -11,9 +10,7 @@
11
10
  [![Sponsors][sponsors-src]][sponsors-href]
12
11
 
13
12
  <h4>
14
- <a href="https://codesandbox.io/s/github/kubb-labs/kubb/tree/main//examples/typescript" target="_blank">View Demo</a>
15
- <span> · </span>
16
- <a href="https://kubb.dev/" target="_blank">Documentation</a>
13
+ <a href="https://kubb.dev" target="_blank">Documentation</a>
17
14
  <span> · </span>
18
15
  <a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Report Bug</a>
19
16
  <span> · </span>
@@ -21,12 +18,22 @@
21
18
  </h4>
22
19
  </div>
23
20
 
24
- Kubb plugin for Vite, webpack, esbuild, Rollup, Nuxt, Astro and Rspack.
21
+ <br />
22
+
23
+ # unplugin-kubb
24
+
25
+ ### Universal build integration for Kubb
26
+
27
+ Runs OpenAPI code generation as part of your build pipeline in Vite, Webpack, Rollup, esbuild, Rspack, Nuxt, and Astro, powered by [unplugin](https://github.com/unjs/unplugin).
25
28
 
26
- ## Install
29
+ ## Installation
27
30
 
28
31
  ```bash
29
- npm i -D unplugin-kubb @kubb/core
32
+ bun add -D unplugin-kubb @kubb/core
33
+ # or
34
+ pnpm add -D unplugin-kubb @kubb/core
35
+ # or
36
+ npm install -D unplugin-kubb @kubb/core
30
37
  ```
31
38
 
32
39
  ```typescript
@@ -77,20 +84,6 @@ export default defineNuxtConfig({
77
84
  })
78
85
  ```
79
86
 
80
- > This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)
81
-
82
- ```typescript
83
- module.exports = {
84
- configureWebpack: {
85
- plugins: [
86
- require('unplugin-kubb/webpack')({
87
- /* options */
88
- }),
89
- ],
90
- },
91
- }
92
- ```
93
-
94
87
  ```typescript
95
88
  import { build } from 'esbuild'
96
89
  import kubb from 'unplugin-kubb/esbuild'
@@ -114,9 +107,10 @@ type Options = {
114
107
 
115
108
  ## Supporting Kubb
116
109
 
117
- Kubb uses an MIT-licensed open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:
110
+ Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:
118
111
 
119
112
  - [Become a Sponsor on GitHub](https://github.com/sponsors/stijnvanhulle)
113
+ - [See sponsorship tiers and our sponsors](https://kubb.dev/sponsors)
120
114
 
121
115
  <p align="center">
122
116
  <a href="https://github.com/sponsors/stijnvanhulle">
@@ -124,6 +118,10 @@ Kubb uses an MIT-licensed open source project with its ongoing development made
124
118
  </a>
125
119
  </p>
126
120
 
121
+ ## License
122
+
123
+ [MIT](https://github.com/kubb-labs/kubb/blob/main/licenses/LICENSE-MIT)
124
+
127
125
  <!-- Badges -->
128
126
 
129
127
  [npm-version-src]: https://img.shields.io/npm/v/unplugin-kubb?flat&colorA=18181B&colorB=f58517
package/dist/astro.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_unpluginFactory = require("./unpluginFactory-C2i5Ff7I.cjs");
1
+ const require_unpluginFactory = require("./unpluginFactory-G0NB0oyN.cjs");
2
2
  const require_vite = require("./vite.cjs");
3
3
  //#region src/astro.ts
4
4
  var astro_default = /* @__PURE__ */ require_unpluginFactory.__name((options) => ({
@@ -1 +1 @@
1
- {"version":3,"file":"astro.cjs","names":["vitePlugin"],"sources":["../src/astro.ts"],"sourcesContent":["import type { Options } from './types.ts'\nimport vitePlugin from './vite.ts'\n\nexport default (options: Options): any => ({\n name: 'unplugin-kubb',\n hooks: {\n 'astro:config:setup': async (astro: any) => {\n astro.config.vite.plugins ||= []\n astro.config.vite.plugins.push(vitePlugin(options))\n },\n },\n})\n"],"mappings":";;;AAGA,IAAA,gBAAA,wCAAA,QAAgB,aAA2B;CACzC,MAAM;CACN,OAAO,EACL,sBAAsB,OAAO,UAAe;AAC1C,QAAM,OAAO,KAAK,YAAY,EAAE;AAChC,QAAM,OAAO,KAAK,QAAQ,KAAKA,aAAW,QAAQ,CAAC;IAEtD;CACF,GAAA,UAAA"}
1
+ {"version":3,"file":"astro.cjs","names":["vitePlugin"],"sources":["../src/astro.ts"],"sourcesContent":["import type { Options } from './types.ts'\nimport vitePlugin from './vite.ts'\n\nexport default (options: Options): any => ({\n name: 'unplugin-kubb',\n hooks: {\n 'astro:config:setup': async (astro: any) => {\n astro.config.vite.plugins ||= []\n astro.config.vite.plugins.push(vitePlugin(options))\n },\n },\n})\n"],"mappings":";;;AAGA,IAAA,gBAAA,wCAAA,QAAgB,aAA2B;CACzC,MAAM;CACN,OAAO,EACL,sBAAsB,OAAO,UAAe;EAC1C,MAAM,OAAO,KAAK,YAAY,CAAC;EAC/B,MAAM,OAAO,KAAK,QAAQ,KAAKA,aAAW,OAAO,CAAC;CACpD,EACF;AACF,IAAA,SAAA"}
package/dist/astro.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as __name } from "./chunk--u3MIqq1.js";
1
+ import { t as __name } from "./chunk-C0LytTxp.js";
2
2
  import { Options } from "./types.js";
3
3
 
4
4
  //#region src/astro.d.ts
package/dist/astro.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as __name } from "./chunk--u3MIqq1.js";
1
+ import { t as __name } from "./chunk-C0LytTxp.js";
2
2
  import vite_default from "./vite.js";
3
3
  //#region src/astro.ts
4
4
  var astro_default = /* @__PURE__ */ __name((options) => ({
package/dist/astro.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"astro.js","names":["vitePlugin"],"sources":["../src/astro.ts"],"sourcesContent":["import type { Options } from './types.ts'\nimport vitePlugin from './vite.ts'\n\nexport default (options: Options): any => ({\n name: 'unplugin-kubb',\n hooks: {\n 'astro:config:setup': async (astro: any) => {\n astro.config.vite.plugins ||= []\n astro.config.vite.plugins.push(vitePlugin(options))\n },\n },\n})\n"],"mappings":";;;AAGA,IAAA,gBAAA,wBAAgB,aAA2B;CACzC,MAAM;CACN,OAAO,EACL,sBAAsB,OAAO,UAAe;AAC1C,QAAM,OAAO,KAAK,YAAY,EAAE;AAChC,QAAM,OAAO,KAAK,QAAQ,KAAKA,aAAW,QAAQ,CAAC;IAEtD;CACF,GAAA,UAAA"}
1
+ {"version":3,"file":"astro.js","names":["vitePlugin"],"sources":["../src/astro.ts"],"sourcesContent":["import type { Options } from './types.ts'\nimport vitePlugin from './vite.ts'\n\nexport default (options: Options): any => ({\n name: 'unplugin-kubb',\n hooks: {\n 'astro:config:setup': async (astro: any) => {\n astro.config.vite.plugins ||= []\n astro.config.vite.plugins.push(vitePlugin(options))\n },\n },\n})\n"],"mappings":";;;AAGA,IAAA,gBAAA,wBAAgB,aAA2B;CACzC,MAAM;CACN,OAAO,EACL,sBAAsB,OAAO,UAAe;EAC1C,MAAM,OAAO,KAAK,YAAY,CAAC;EAC/B,MAAM,OAAO,KAAK,QAAQ,KAAKA,aAAW,OAAO,CAAC;CACpD,EACF;AACF,IAAA,SAAA"}
package/dist/esbuild.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_unpluginFactory = require("./unpluginFactory-C2i5Ff7I.cjs");
1
+ const require_unpluginFactory = require("./unpluginFactory-G0NB0oyN.cjs");
2
2
  //#region src/esbuild.ts
3
3
  var esbuild_default = (0, require("unplugin").createEsbuildPlugin)(require_unpluginFactory.unpluginFactory);
4
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"esbuild.cjs","names":["unpluginFactory"],"sources":["../src/esbuild.ts"],"sourcesContent":["import { createEsbuildPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createEsbuildPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,mBAAA,sBAAA,CAAA,qBAAmCA,wBAAAA,gBAAgB"}
1
+ {"version":3,"file":"esbuild.cjs","names":["unpluginFactory"],"sources":["../src/esbuild.ts"],"sourcesContent":["import { createEsbuildPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createEsbuildPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,mBAAA,qBAAA,EAAA,qBAAmCA,wBAAAA,eAAe"}
package/dist/esbuild.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import { t as __name } from "./chunk--u3MIqq1.js";
1
+ import { t as __name } from "./chunk-C0LytTxp.js";
2
2
  import { Options } from "./types.js";
3
- import * as _$esbuild from "esbuild";
4
3
 
5
4
  //#region src/esbuild.d.ts
6
- declare const _default: (options?: Options | undefined) => _$esbuild.Plugin;
5
+ declare const _default: (options?: Options | undefined) => import("esbuild").Plugin;
7
6
  //#endregion
8
7
  export { _default as default };
9
8
  //# sourceMappingURL=esbuild.d.ts.map
package/dist/esbuild.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as unpluginFactory } from "./unpluginFactory-CtJfHKS_.js";
1
+ import { t as unpluginFactory } from "./unpluginFactory-ChuHVuk8.js";
2
2
  import { createEsbuildPlugin } from "unplugin";
3
3
  //#region src/esbuild.ts
4
4
  var esbuild_default = createEsbuildPlugin(unpluginFactory);
@@ -1 +1 @@
1
- {"version":3,"file":"esbuild.js","names":[],"sources":["../src/esbuild.ts"],"sourcesContent":["import { createEsbuildPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createEsbuildPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,kBAAe,oBAAoB,gBAAgB"}
1
+ {"version":3,"file":"esbuild.js","names":[],"sources":["../src/esbuild.ts"],"sourcesContent":["import { createEsbuildPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createEsbuildPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,kBAAe,oBAAoB,eAAe"}
package/dist/farm.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_unpluginFactory = require("./unpluginFactory-C2i5Ff7I.cjs");
1
+ const require_unpluginFactory = require("./unpluginFactory-G0NB0oyN.cjs");
2
2
  //#region src/farm.ts
3
3
  var farm_default = (0, require("unplugin").createFarmPlugin)(require_unpluginFactory.unpluginFactory);
4
4
  //#endregion
package/dist/farm.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"farm.cjs","names":["unpluginFactory"],"sources":["../src/farm.ts"],"sourcesContent":["import { createFarmPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createFarmPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,gBAAA,sBAAA,CAAA,kBAAgCA,wBAAAA,gBAAgB"}
1
+ {"version":3,"file":"farm.cjs","names":["unpluginFactory"],"sources":["../src/farm.ts"],"sourcesContent":["import { createFarmPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createFarmPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,gBAAA,qBAAA,EAAA,kBAAgCA,wBAAAA,eAAe"}
package/dist/farm.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import { t as __name } from "./chunk--u3MIqq1.js";
1
+ import { t as __name } from "./chunk-C0LytTxp.js";
2
2
  import { Options } from "./types.js";
3
- import * as _$_farmfe_core0 from "@farmfe/core";
4
3
 
5
4
  //#region src/farm.d.ts
6
- declare const _default: (options?: Options | undefined) => _$_farmfe_core0.JsPlugin;
5
+ declare const _default: (options?: Options | undefined) => import("@farmfe/core").JsPlugin;
7
6
  //#endregion
8
7
  export { _default as default };
9
8
  //# sourceMappingURL=farm.d.ts.map
package/dist/farm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as unpluginFactory } from "./unpluginFactory-CtJfHKS_.js";
1
+ import { t as unpluginFactory } from "./unpluginFactory-ChuHVuk8.js";
2
2
  import { createFarmPlugin } from "unplugin";
3
3
  //#region src/farm.ts
4
4
  var farm_default = createFarmPlugin(unpluginFactory);
package/dist/farm.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"farm.js","names":[],"sources":["../src/farm.ts"],"sourcesContent":["import { createFarmPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createFarmPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,eAAe,iBAAiB,gBAAgB"}
1
+ {"version":3,"file":"farm.js","names":[],"sources":["../src/farm.ts"],"sourcesContent":["import { createFarmPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createFarmPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,eAAe,iBAAiB,eAAe"}
package/dist/index.cjs CHANGED
@@ -2,9 +2,9 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_unpluginFactory = require("./unpluginFactory-C2i5Ff7I.cjs");
5
+ const require_unpluginFactory = require("./unpluginFactory-G0NB0oyN.cjs");
6
6
  //#region src/index.ts
7
- const plugin = /* @__PURE__ */ (0, require("unplugin").createUnplugin)(require_unpluginFactory.unpluginFactory);
7
+ const plugin = /* #__PURE__ */ (0, require("unplugin").createUnplugin)(require_unpluginFactory.unpluginFactory);
8
8
  //#endregion
9
9
  exports.default = plugin;
10
10
  exports.unplugin = plugin;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["unpluginFactory"],"sources":["../src/index.ts"],"sourcesContent":["import { createUnplugin } from 'unplugin'\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport type { BarrelType } from '@kubb/middleware-barrel'\nexport type { Options } from './types.ts'\nexport { unpluginFactory } from './unpluginFactory.ts'\n\nconst plugin = /* #__PURE__ */ createUnplugin(unpluginFactory)\n\nexport { plugin as unplugin, plugin as default }\n"],"mappings":";;;;;;AAOA,MAAM,SAAyB,iBAAA,sBAAA,CAAA,gBAAeA,wBAAAA,gBAAgB"}
1
+ {"version":3,"file":"index.cjs","names":["unpluginFactory"],"sources":["../src/index.ts"],"sourcesContent":["import { createUnplugin } from 'unplugin'\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport type { BarrelType } from '@kubb/middleware-barrel'\nexport type { Options } from './types.ts'\nexport { unpluginFactory } from './unpluginFactory.ts'\n\nconst plugin = /* #__PURE__ */ createUnplugin(unpluginFactory)\n\nexport { plugin as unplugin, plugin as default }\n"],"mappings":";;;;;;AAOA,MAAM,SAAyB,iBAAA,qBAAA,EAAA,gBAAeA,wBAAAA,eAAe"}
package/dist/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
- import { t as __name } from "./chunk--u3MIqq1.js";
1
+ import { t as __name } from "./chunk-C0LytTxp.js";
2
2
  import { Options } from "./types.js";
3
3
  import { unpluginFactory } from "./unpluginFactory.js";
4
- import * as _$unplugin from "unplugin";
5
4
  import { BarrelType } from "@kubb/middleware-barrel";
6
5
 
7
6
  //#region src/index.d.ts
8
- declare const plugin: _$unplugin.UnpluginInstance<Options | undefined, boolean>;
7
+ declare const plugin: import("unplugin").UnpluginInstance<Options | undefined, boolean>;
9
8
  //#endregion
10
9
  export { type BarrelType, type Options, plugin as default, plugin as unplugin, unpluginFactory };
11
10
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { t as unpluginFactory } from "./unpluginFactory-CtJfHKS_.js";
1
+ import { t as unpluginFactory } from "./unpluginFactory-ChuHVuk8.js";
2
2
  import { createUnplugin } from "unplugin";
3
3
  //#region src/index.ts
4
- const plugin = /* @__PURE__ */ createUnplugin(unpluginFactory);
4
+ const plugin = /* #__PURE__ */ createUnplugin(unpluginFactory);
5
5
  //#endregion
6
6
  export { plugin as default, plugin as unplugin, unpluginFactory };
7
7
 
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { createUnplugin } from 'unplugin'\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport type { BarrelType } from '@kubb/middleware-barrel'\nexport type { Options } from './types.ts'\nexport { unpluginFactory } from './unpluginFactory.ts'\n\nconst plugin = /* #__PURE__ */ createUnplugin(unpluginFactory)\n\nexport { plugin as unplugin, plugin as default }\n"],"mappings":";;;AAOA,MAAM,SAAyB,+BAAe,gBAAgB"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { createUnplugin } from 'unplugin'\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport type { BarrelType } from '@kubb/middleware-barrel'\nexport type { Options } from './types.ts'\nexport { unpluginFactory } from './unpluginFactory.ts'\n\nconst plugin = /* #__PURE__ */ createUnplugin(unpluginFactory)\n\nexport { plugin as unplugin, plugin as default }\n"],"mappings":";;;AAOA,MAAM,SAAyB,+BAAe,eAAe"}
package/dist/nuxt.cjs CHANGED
@@ -1,4 +1,4 @@
1
- require("./unpluginFactory-C2i5Ff7I.cjs");
1
+ require("./unpluginFactory-G0NB0oyN.cjs");
2
2
  const require_vite = require("./vite.cjs");
3
3
  const require_webpack = require("./webpack.cjs");
4
4
  let _nuxt_kit = require("@nuxt/kit");
package/dist/nuxt.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"nuxt.cjs","names":["vite","webpack"],"sources":["../src/nuxt.ts"],"sourcesContent":["import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from '@nuxt/kit'\nimport '@nuxt/schema'\n\nimport type { Options } from './types.ts'\nimport vite from './vite.ts'\nimport webpack from './webpack.ts'\n\nexport interface ModuleOptions extends Options {}\n\nexport default defineNuxtModule<ModuleOptions>({\n meta: {\n name: 'nuxt-unplugin-kubb',\n configKey: 'unpluginKubb',\n },\n defaults: undefined,\n setup(options, _nuxt) {\n addVitePlugin(() => vite(options))\n addWebpackPlugin(() => webpack(options))\n\n // ...\n },\n})\n"],"mappings":";;;;;;AASA,IAAA,gBAAA,GAAA,UAAA,kBAA+C;CAC7C,MAAM;EACJ,MAAM;EACN,WAAW;EACZ;CACD,UAAU,KAAA;CACV,MAAM,SAAS,OAAO;AACpB,GAAA,GAAA,UAAA,qBAAoBA,aAAK,QAAQ,CAAC;AAClC,GAAA,GAAA,UAAA,wBAAuBC,gBAAQ,QAAQ,CAAC;;CAI3C,CAAC"}
1
+ {"version":3,"file":"nuxt.cjs","names":["vite","webpack"],"sources":["../src/nuxt.ts"],"sourcesContent":["import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from '@nuxt/kit'\nimport '@nuxt/schema'\n\nimport type { Options } from './types.ts'\nimport vite from './vite.ts'\nimport webpack from './webpack.ts'\n\nexport interface ModuleOptions extends Options {}\n\nexport default defineNuxtModule<ModuleOptions>({\n meta: {\n name: 'nuxt-unplugin-kubb',\n configKey: 'unpluginKubb',\n },\n defaults: undefined,\n setup(options, _nuxt) {\n addVitePlugin(() => vite(options))\n addWebpackPlugin(() => webpack(options))\n },\n})\n"],"mappings":";;;;;;AASA,IAAA,gBAAA,GAAA,UAAA,kBAA+C;CAC7C,MAAM;EACJ,MAAM;EACN,WAAW;CACb;CACA,UAAU,KAAA;CACV,MAAM,SAAS,OAAO;EACpB,CAAA,GAAA,UAAA,qBAAoBA,aAAK,OAAO,CAAC;EACjC,CAAA,GAAA,UAAA,wBAAuBC,gBAAQ,OAAO,CAAC;CACzC;AACF,CAAC"}
package/dist/nuxt.d.ts CHANGED
@@ -1,10 +1,8 @@
1
- import { t as __name } from "./chunk--u3MIqq1.js";
1
+ import { t as __name } from "./chunk-C0LytTxp.js";
2
2
  import { Options } from "./types.js";
3
- import * as _$_nuxt_schema0 from "@nuxt/schema";
4
-
5
3
  //#region src/nuxt.d.ts
6
4
  interface ModuleOptions extends Options {}
7
- declare const _default: _$_nuxt_schema0.NuxtModule<ModuleOptions, ModuleOptions, false>;
5
+ declare const _default: import("@nuxt/schema").NuxtModule<ModuleOptions, ModuleOptions, false>;
8
6
  //#endregion
9
7
  export { ModuleOptions, _default as default };
10
8
  //# sourceMappingURL=nuxt.d.ts.map
package/dist/nuxt.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk--u3MIqq1.js";
1
+ import "./chunk-C0LytTxp.js";
2
2
  import vite_default from "./vite.js";
3
3
  import webpack_default from "./webpack.js";
4
4
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
package/dist/nuxt.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"nuxt.js","names":["vite","webpack"],"sources":["../src/nuxt.ts"],"sourcesContent":["import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from '@nuxt/kit'\nimport '@nuxt/schema'\n\nimport type { Options } from './types.ts'\nimport vite from './vite.ts'\nimport webpack from './webpack.ts'\n\nexport interface ModuleOptions extends Options {}\n\nexport default defineNuxtModule<ModuleOptions>({\n meta: {\n name: 'nuxt-unplugin-kubb',\n configKey: 'unpluginKubb',\n },\n defaults: undefined,\n setup(options, _nuxt) {\n addVitePlugin(() => vite(options))\n addWebpackPlugin(() => webpack(options))\n\n // ...\n },\n})\n"],"mappings":";;;;;;AASA,IAAA,eAAe,iBAAgC;CAC7C,MAAM;EACJ,MAAM;EACN,WAAW;EACZ;CACD,UAAU,KAAA;CACV,MAAM,SAAS,OAAO;AACpB,sBAAoBA,aAAK,QAAQ,CAAC;AAClC,yBAAuBC,gBAAQ,QAAQ,CAAC;;CAI3C,CAAC"}
1
+ {"version":3,"file":"nuxt.js","names":["vite","webpack"],"sources":["../src/nuxt.ts"],"sourcesContent":["import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from '@nuxt/kit'\nimport '@nuxt/schema'\n\nimport type { Options } from './types.ts'\nimport vite from './vite.ts'\nimport webpack from './webpack.ts'\n\nexport interface ModuleOptions extends Options {}\n\nexport default defineNuxtModule<ModuleOptions>({\n meta: {\n name: 'nuxt-unplugin-kubb',\n configKey: 'unpluginKubb',\n },\n defaults: undefined,\n setup(options, _nuxt) {\n addVitePlugin(() => vite(options))\n addWebpackPlugin(() => webpack(options))\n },\n})\n"],"mappings":";;;;;;AASA,IAAA,eAAe,iBAAgC;CAC7C,MAAM;EACJ,MAAM;EACN,WAAW;CACb;CACA,UAAU,KAAA;CACV,MAAM,SAAS,OAAO;EACpB,oBAAoBA,aAAK,OAAO,CAAC;EACjC,uBAAuBC,gBAAQ,OAAO,CAAC;CACzC;AACF,CAAC"}
package/dist/rolldown.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_unpluginFactory = require("./unpluginFactory-C2i5Ff7I.cjs");
1
+ const require_unpluginFactory = require("./unpluginFactory-G0NB0oyN.cjs");
2
2
  //#region src/rolldown.ts
3
3
  var rolldown_default = (0, require("unplugin").createRolldownPlugin)(require_unpluginFactory.unpluginFactory);
4
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"rolldown.cjs","names":["unpluginFactory"],"sources":["../src/rolldown.ts"],"sourcesContent":["import { createRolldownPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createRolldownPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,oBAAA,sBAAA,CAAA,sBAAoCA,wBAAAA,gBAAgB"}
1
+ {"version":3,"file":"rolldown.cjs","names":["unpluginFactory"],"sources":["../src/rolldown.ts"],"sourcesContent":["import { createRolldownPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createRolldownPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,oBAAA,qBAAA,EAAA,sBAAoCA,wBAAAA,eAAe"}
@@ -1,9 +1,8 @@
1
- import { t as __name } from "./chunk--u3MIqq1.js";
1
+ import { t as __name } from "./chunk-C0LytTxp.js";
2
2
  import { Options } from "./types.js";
3
- import * as _$rolldown from "rolldown";
4
3
 
5
4
  //#region src/rolldown.d.ts
6
- declare const _default: (options?: Options | undefined) => _$rolldown.Plugin<any> | _$rolldown.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => import("rolldown").Plugin<any> | import("rolldown").Plugin<any>[];
7
6
  //#endregion
8
7
  export { _default as default };
9
8
  //# sourceMappingURL=rolldown.d.ts.map
package/dist/rolldown.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as unpluginFactory } from "./unpluginFactory-CtJfHKS_.js";
1
+ import { t as unpluginFactory } from "./unpluginFactory-ChuHVuk8.js";
2
2
  import { createRolldownPlugin } from "unplugin";
3
3
  //#region src/rolldown.ts
4
4
  var rolldown_default = createRolldownPlugin(unpluginFactory);
@@ -1 +1 @@
1
- {"version":3,"file":"rolldown.js","names":[],"sources":["../src/rolldown.ts"],"sourcesContent":["import { createRolldownPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createRolldownPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,mBAAe,qBAAqB,gBAAgB"}
1
+ {"version":3,"file":"rolldown.js","names":[],"sources":["../src/rolldown.ts"],"sourcesContent":["import { createRolldownPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createRolldownPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,mBAAe,qBAAqB,eAAe"}
package/dist/rollup.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_unpluginFactory = require("./unpluginFactory-C2i5Ff7I.cjs");
1
+ const require_unpluginFactory = require("./unpluginFactory-G0NB0oyN.cjs");
2
2
  //#region src/rollup.ts
3
3
  var rollup_default = (0, require("unplugin").createRollupPlugin)(require_unpluginFactory.unpluginFactory);
4
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"rollup.cjs","names":["unpluginFactory"],"sources":["../src/rollup.ts"],"sourcesContent":["import { createRollupPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createRollupPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,kBAAA,sBAAA,CAAA,oBAAkCA,wBAAAA,gBAAgB"}
1
+ {"version":3,"file":"rollup.cjs","names":["unpluginFactory"],"sources":["../src/rollup.ts"],"sourcesContent":["import { createRollupPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createRollupPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,kBAAA,qBAAA,EAAA,oBAAkCA,wBAAAA,eAAe"}
package/dist/rollup.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import { t as __name } from "./chunk--u3MIqq1.js";
1
+ import { t as __name } from "./chunk-C0LytTxp.js";
2
2
  import { Options } from "./types.js";
3
- import * as _$rollup from "rollup";
4
3
 
5
4
  //#region src/rollup.d.ts
6
- declare const _default: (options?: Options | undefined) => _$rollup.Plugin<any> | _$rollup.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => import("rollup").Plugin<any> | import("rollup").Plugin<any>[];
7
6
  //#endregion
8
7
  export { _default as default };
9
8
  //# sourceMappingURL=rollup.d.ts.map
package/dist/rollup.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as unpluginFactory } from "./unpluginFactory-CtJfHKS_.js";
1
+ import { t as unpluginFactory } from "./unpluginFactory-ChuHVuk8.js";
2
2
  import { createRollupPlugin } from "unplugin";
3
3
  //#region src/rollup.ts
4
4
  var rollup_default = createRollupPlugin(unpluginFactory);
@@ -1 +1 @@
1
- {"version":3,"file":"rollup.js","names":[],"sources":["../src/rollup.ts"],"sourcesContent":["import { createRollupPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createRollupPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,iBAAe,mBAAmB,gBAAgB"}
1
+ {"version":3,"file":"rollup.js","names":[],"sources":["../src/rollup.ts"],"sourcesContent":["import { createRollupPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createRollupPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,iBAAe,mBAAmB,eAAe"}
package/dist/rspack.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_unpluginFactory = require("./unpluginFactory-C2i5Ff7I.cjs");
1
+ const require_unpluginFactory = require("./unpluginFactory-G0NB0oyN.cjs");
2
2
  //#region src/rspack.ts
3
3
  var rspack_default = (0, require("unplugin").createRspackPlugin)(require_unpluginFactory.unpluginFactory);
4
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"rspack.cjs","names":["unpluginFactory"],"sources":["../src/rspack.ts"],"sourcesContent":["import { createRspackPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createRspackPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,kBAAA,sBAAA,CAAA,oBAAkCA,wBAAAA,gBAAgB"}
1
+ {"version":3,"file":"rspack.cjs","names":["unpluginFactory"],"sources":["../src/rspack.ts"],"sourcesContent":["import { createRspackPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createRspackPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,kBAAA,qBAAA,EAAA,oBAAkCA,wBAAAA,eAAe"}
package/dist/rspack.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as __name } from "./chunk--u3MIqq1.js";
1
+ import { t as __name } from "./chunk-C0LytTxp.js";
2
2
  import { Options } from "./types.js";
3
3
 
4
4
  //#region src/rspack.d.ts
package/dist/rspack.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as unpluginFactory } from "./unpluginFactory-CtJfHKS_.js";
1
+ import { t as unpluginFactory } from "./unpluginFactory-ChuHVuk8.js";
2
2
  import { createRspackPlugin } from "unplugin";
3
3
  //#region src/rspack.ts
4
4
  var rspack_default = createRspackPlugin(unpluginFactory);
@@ -1 +1 @@
1
- {"version":3,"file":"rspack.js","names":[],"sources":["../src/rspack.ts"],"sourcesContent":["import { createRspackPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createRspackPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,iBAAe,mBAAmB,gBAAgB"}
1
+ {"version":3,"file":"rspack.js","names":[],"sources":["../src/rspack.ts"],"sourcesContent":["import { createRspackPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './unpluginFactory.ts'\n\nexport default createRspackPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,iBAAe,mBAAmB,eAAe"}
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as __name } from "./chunk--u3MIqq1.js";
1
+ import { t as __name } from "./chunk-C0LytTxp.js";
2
2
  import { UserConfig } from "@kubb/core";
3
3
 
4
4
  //#region src/types.d.ts