unplugin-kubb 4.0.2 → 5.0.1
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/LICENSE +10 -17
- package/dist/astro.cjs +7 -8
- package/dist/astro.cjs.map +1 -1
- package/dist/astro.d.ts +3 -8
- package/dist/astro.js +7 -9
- package/dist/astro.js.map +1 -1
- package/dist/{chunk-CIm-hhu7.js → chunk--u3MIqq1.js} +2 -3
- package/dist/esbuild.cjs +3 -5
- package/dist/esbuild.cjs.map +1 -1
- package/dist/esbuild.d.ts +4 -4
- package/dist/esbuild.js +2 -3
- package/dist/esbuild.js.map +1 -1
- package/dist/farm.cjs +7 -0
- package/dist/farm.cjs.map +1 -0
- package/dist/farm.d.ts +9 -0
- package/dist/farm.js +8 -0
- package/dist/farm.js.map +1 -0
- package/dist/index.cjs +12 -5
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +6 -7
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -0
- package/dist/nuxt.cjs +8 -9
- package/dist/nuxt.cjs.map +1 -1
- package/dist/nuxt.d.ts +2 -2
- package/dist/nuxt.js +4 -5
- package/dist/nuxt.js.map +1 -1
- package/dist/rolldown.cjs +7 -0
- package/dist/rolldown.cjs.map +1 -0
- package/dist/rolldown.d.ts +9 -0
- package/dist/rolldown.js +8 -0
- package/dist/rolldown.js.map +1 -0
- package/dist/rollup.cjs +3 -5
- package/dist/rollup.cjs.map +1 -1
- package/dist/rollup.d.ts +4 -4
- package/dist/rollup.js +2 -3
- package/dist/rollup.js.map +1 -1
- package/dist/rspack.cjs +3 -5
- package/dist/rspack.cjs.map +1 -1
- package/dist/rspack.d.ts +2 -2
- package/dist/rspack.js +2 -3
- package/dist/rspack.js.map +1 -1
- package/dist/types.d.ts +13 -2
- package/dist/types.js +1 -1
- package/dist/unpluginFactory-0sYXb5x6.js +157 -0
- package/dist/unpluginFactory-0sYXb5x6.js.map +1 -0
- package/dist/unpluginFactory-BpZ2psBF.cjs +200 -0
- package/dist/unpluginFactory-BpZ2psBF.cjs.map +1 -0
- package/dist/unpluginFactory.cjs +3 -0
- package/dist/unpluginFactory.d.ts +9 -0
- package/dist/unpluginFactory.js +2 -0
- package/dist/vite.cjs +3 -5
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.ts +4 -4
- package/dist/vite.js +2 -3
- package/dist/vite.js.map +1 -1
- package/dist/webpack.cjs +3 -5
- package/dist/webpack.cjs.map +1 -1
- package/dist/webpack.d.ts +2 -2
- package/dist/webpack.js +2 -3
- package/dist/webpack.js.map +1 -1
- package/package.json +69 -42
- package/src/astro.ts +4 -5
- package/src/esbuild.ts +1 -1
- package/src/farm.ts +5 -0
- package/src/index.ts +6 -133
- package/src/nuxt.ts +2 -2
- package/src/rolldown.ts +5 -0
- package/src/rollup.ts +1 -1
- package/src/rspack.ts +1 -1
- package/src/unpluginFactory.ts +132 -0
- package/src/vite.ts +1 -1
- package/src/webpack.ts +1 -2
- package/dist/astro.d.cts +0 -11
- package/dist/esbuild.d.cts +0 -7
- package/dist/index.d.cts +0 -10
- package/dist/nuxt.d.cts +0 -9
- package/dist/rollup.d.cts +0 -7
- package/dist/rspack.d.cts +0 -6
- package/dist/src-BiN2tznZ.cjs +0 -155
- package/dist/src-BiN2tznZ.cjs.map +0 -1
- package/dist/src-CiUcBKSs.js +0 -95
- package/dist/src-CiUcBKSs.js.map +0 -1
- package/dist/types-C-ZTDGdJ.d.cts +0 -650
- package/dist/types-CUVJ-CBJ.d.ts +0 -649
- package/dist/types.d.cts +0 -2
- package/dist/vite.d.cts +0 -7
- package/dist/webpack.d.cts +0 -8
package/LICENSE
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright (c) 2026 Stijn Van Hulle
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This repository contains software under two licenses:
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
5
|
+
1. Most of the code in this repository is licensed under the
|
|
6
|
+
MIT License — see licenses/LICENSE-MIT for the full license text.
|
|
11
7
|
|
|
12
|
-
The
|
|
13
|
-
|
|
8
|
+
2. The following components are licensed under the
|
|
9
|
+
GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later)
|
|
10
|
+
— see licenses/LICENSE-AGPL-3.0 for the full license text:
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
12
|
+
- packages/agent (published as @kubb/agent)
|
|
13
|
+
|
|
14
|
+
Each package's own LICENSE file or package.json specifies its applicable license.
|
package/dist/astro.cjs
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
1
|
+
const require_unpluginFactory = require("./unpluginFactory-BpZ2psBF.cjs");
|
|
2
|
+
const require_vite = require("./vite.cjs");
|
|
3
3
|
//#region src/astro.ts
|
|
4
|
-
var astro_default = (options) => ({
|
|
5
|
-
name: "unplugin-
|
|
4
|
+
var astro_default = /* @__PURE__ */ require_unpluginFactory.__name((options) => ({
|
|
5
|
+
name: "unplugin-kubb",
|
|
6
6
|
hooks: { "astro:config:setup": async (astro) => {
|
|
7
7
|
astro.config.vite.plugins ||= [];
|
|
8
|
-
astro.config.vite.plugins.push(
|
|
8
|
+
astro.config.vite.plugins.push(require_vite(options));
|
|
9
9
|
} }
|
|
10
|
-
});
|
|
11
|
-
require_src.__name(astro_default, "default");
|
|
12
|
-
|
|
10
|
+
}), "default");
|
|
13
11
|
//#endregion
|
|
14
12
|
module.exports = astro_default;
|
|
13
|
+
|
|
15
14
|
//# sourceMappingURL=astro.cjs.map
|
package/dist/astro.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astro.cjs","names":["
|
|
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"}
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { t as __name } from "./chunk
|
|
2
|
-
import {
|
|
1
|
+
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
+
import { Options } from "./types.js";
|
|
3
3
|
|
|
4
4
|
//#region src/astro.d.ts
|
|
5
|
-
declare const _default: (options: Options) =>
|
|
6
|
-
name: string;
|
|
7
|
-
hooks: {
|
|
8
|
-
'astro:config:setup': (astro: any) => Promise<void>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
5
|
+
declare const _default: (options: Options) => any;
|
|
11
6
|
//#endregion
|
|
12
7
|
export { _default as default };
|
|
13
8
|
//# sourceMappingURL=astro.d.ts.map
|
package/dist/astro.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { t as __name } from "./chunk
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
+
import vite_default from "./vite.js";
|
|
4
3
|
//#region src/astro.ts
|
|
5
|
-
var astro_default = (options) => ({
|
|
6
|
-
name: "unplugin-
|
|
4
|
+
var astro_default = /* @__PURE__ */ __name((options) => ({
|
|
5
|
+
name: "unplugin-kubb",
|
|
7
6
|
hooks: { "astro:config:setup": async (astro) => {
|
|
8
7
|
astro.config.vite.plugins ||= [];
|
|
9
|
-
astro.config.vite.plugins.push(
|
|
8
|
+
astro.config.vite.plugins.push(vite_default(options));
|
|
10
9
|
} }
|
|
11
|
-
});
|
|
12
|
-
__name(astro_default, "default");
|
|
13
|
-
|
|
10
|
+
}), "default");
|
|
14
11
|
//#endregion
|
|
15
12
|
export { astro_default as default };
|
|
13
|
+
|
|
16
14
|
//# sourceMappingURL=astro.js.map
|
package/dist/astro.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astro.js","names":["
|
|
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,9 +1,8 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __name = (target, value) => __defProp(target, "name", {
|
|
4
4
|
value,
|
|
5
5
|
configurable: true
|
|
6
6
|
});
|
|
7
|
-
|
|
8
7
|
//#endregion
|
|
9
|
-
export { __name as t };
|
|
8
|
+
export { __name as t };
|
package/dist/esbuild.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
let unplugin = require("unplugin");
|
|
3
|
-
|
|
1
|
+
const require_unpluginFactory = require("./unpluginFactory-BpZ2psBF.cjs");
|
|
4
2
|
//#region src/esbuild.ts
|
|
5
|
-
var esbuild_default = (0, unplugin.createEsbuildPlugin)(
|
|
6
|
-
|
|
3
|
+
var esbuild_default = (0, require("unplugin").createEsbuildPlugin)(require_unpluginFactory.unpluginFactory);
|
|
7
4
|
//#endregion
|
|
8
5
|
module.exports = esbuild_default;
|
|
6
|
+
|
|
9
7
|
//# sourceMappingURL=esbuild.cjs.map
|
package/dist/esbuild.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild.cjs","names":["unpluginFactory"],"sources":["../src/esbuild.ts"],"sourcesContent":["import { createEsbuildPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './
|
|
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,uBAAA,qBAAmCA,wBAAAA,gBAAgB"}
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as __name } from "./chunk
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
1
|
+
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
+
import { Options } from "./types.js";
|
|
3
|
+
import * as esbuild from "esbuild";
|
|
4
4
|
|
|
5
5
|
//#region src/esbuild.d.ts
|
|
6
|
-
declare const _default: (options?: Options | undefined) =>
|
|
6
|
+
declare const _default: (options?: Options | undefined) => esbuild.Plugin;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
|
9
9
|
//# sourceMappingURL=esbuild.d.ts.map
|
package/dist/esbuild.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as unpluginFactory } from "./unpluginFactory-0sYXb5x6.js";
|
|
2
2
|
import { createEsbuildPlugin } from "unplugin";
|
|
3
|
-
|
|
4
3
|
//#region src/esbuild.ts
|
|
5
4
|
var esbuild_default = createEsbuildPlugin(unpluginFactory);
|
|
6
|
-
|
|
7
5
|
//#endregion
|
|
8
6
|
export { esbuild_default as default };
|
|
7
|
+
|
|
9
8
|
//# sourceMappingURL=esbuild.js.map
|
package/dist/esbuild.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild.js","names":[],"sources":["../src/esbuild.ts"],"sourcesContent":["import { createEsbuildPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './
|
|
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"}
|
package/dist/farm.cjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const require_unpluginFactory = require("./unpluginFactory-BpZ2psBF.cjs");
|
|
2
|
+
//#region src/farm.ts
|
|
3
|
+
var farm_default = (0, require("unplugin").createFarmPlugin)(require_unpluginFactory.unpluginFactory);
|
|
4
|
+
//#endregion
|
|
5
|
+
module.exports = farm_default;
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=farm.cjs.map
|
|
@@ -0,0 +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,uBAAA,kBAAgCA,wBAAAA,gBAAgB"}
|
package/dist/farm.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
+
import { Options } from "./types.js";
|
|
3
|
+
import * as _farmfe_core0 from "@farmfe/core";
|
|
4
|
+
|
|
5
|
+
//#region src/farm.d.ts
|
|
6
|
+
declare const _default: (options?: Options | undefined) => _farmfe_core0.JsPlugin;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { _default as default };
|
|
9
|
+
//# sourceMappingURL=farm.d.ts.map
|
package/dist/farm.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as unpluginFactory } from "./unpluginFactory-0sYXb5x6.js";
|
|
2
|
+
import { createFarmPlugin } from "unplugin";
|
|
3
|
+
//#region src/farm.ts
|
|
4
|
+
var farm_default = createFarmPlugin(unpluginFactory);
|
|
5
|
+
//#endregion
|
|
6
|
+
export { farm_default as default };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=farm.js.map
|
package/dist/farm.js.map
ADDED
|
@@ -0,0 +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"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_unpluginFactory = require("./unpluginFactory-BpZ2psBF.cjs");
|
|
6
|
+
//#region src/index.ts
|
|
7
|
+
const plugin = /* @__PURE__ */ (0, require("unplugin").createUnplugin)(require_unpluginFactory.unpluginFactory);
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.default = plugin;
|
|
10
|
+
exports.unplugin = plugin;
|
|
11
|
+
exports.unpluginFactory = require_unpluginFactory.unpluginFactory;
|
|
3
12
|
|
|
4
|
-
|
|
5
|
-
exports.unplugin = require_src.unplugin;
|
|
6
|
-
exports.unpluginFactory = require_src.unpluginFactory;
|
|
13
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +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 { Options } from './types.ts'\nexport { unpluginFactory } from './unpluginFactory.ts'\n\nconst plugin = /* #__PURE__ */ createUnplugin(unpluginFactory)\n\nexport { plugin as unplugin }\nexport { plugin as default }\n"],"mappings":";;;;;;AAMA,MAAM,SAAyB,iBAAA,uBAAA,gBAAeA,wBAAAA,gBAAgB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { t as __name } from "./chunk
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
+
import { Options } from "./types.js";
|
|
3
|
+
import { unpluginFactory } from "./unpluginFactory.js";
|
|
4
|
+
import * as unplugin from "unplugin";
|
|
5
5
|
|
|
6
6
|
//#region src/index.d.ts
|
|
7
|
-
declare const
|
|
8
|
-
declare const unplugin: unplugin0.UnpluginInstance<Options | undefined, boolean>;
|
|
7
|
+
declare const plugin: unplugin.UnpluginInstance<Options | undefined, boolean>;
|
|
9
8
|
//#endregion
|
|
10
|
-
export {
|
|
9
|
+
export { type Options, plugin as default, plugin as unplugin, unpluginFactory };
|
|
11
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as unpluginFactory } from "./unpluginFactory-0sYXb5x6.js";
|
|
2
|
+
import { createUnplugin } from "unplugin";
|
|
3
|
+
//#region src/index.ts
|
|
4
|
+
const plugin = /* @__PURE__ */ createUnplugin(unpluginFactory);
|
|
5
|
+
//#endregion
|
|
6
|
+
export { plugin as default, plugin as unplugin, unpluginFactory };
|
|
2
7
|
|
|
3
|
-
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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 { Options } from './types.ts'\nexport { unpluginFactory } from './unpluginFactory.ts'\n\nconst plugin = /* #__PURE__ */ createUnplugin(unpluginFactory)\n\nexport { plugin as unplugin }\nexport { plugin as default }\n"],"mappings":";;;AAMA,MAAM,SAAyB,+BAAe,gBAAgB"}
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
const require_vite = require(
|
|
3
|
-
const require_webpack = require(
|
|
1
|
+
require("./unpluginFactory-BpZ2psBF.cjs");
|
|
2
|
+
const require_vite = require("./vite.cjs");
|
|
3
|
+
const require_webpack = require("./webpack.cjs");
|
|
4
4
|
let _nuxt_kit = require("@nuxt/kit");
|
|
5
5
|
require("@nuxt/schema");
|
|
6
|
-
|
|
7
6
|
//#region src/nuxt.ts
|
|
8
7
|
var nuxt_default = (0, _nuxt_kit.defineNuxtModule)({
|
|
9
8
|
meta: {
|
|
10
|
-
name: "nuxt-unplugin-
|
|
11
|
-
configKey: "
|
|
9
|
+
name: "nuxt-unplugin-kubb",
|
|
10
|
+
configKey: "unpluginKubb"
|
|
12
11
|
},
|
|
13
12
|
defaults: void 0,
|
|
14
13
|
setup(options, _nuxt) {
|
|
15
|
-
(0, _nuxt_kit.addVitePlugin)(() => require_vite
|
|
16
|
-
(0, _nuxt_kit.addWebpackPlugin)(() => require_webpack
|
|
14
|
+
(0, _nuxt_kit.addVitePlugin)(() => require_vite(options));
|
|
15
|
+
(0, _nuxt_kit.addWebpackPlugin)(() => require_webpack(options));
|
|
17
16
|
}
|
|
18
17
|
});
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
19
|
module.exports = nuxt_default;
|
|
20
|
+
|
|
22
21
|
//# sourceMappingURL=nuxt.cjs.map
|
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-
|
|
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"}
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as __name } from "./chunk
|
|
2
|
-
import {
|
|
1
|
+
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
+
import { Options } from "./types.js";
|
|
3
3
|
import * as _nuxt_schema0 from "@nuxt/schema";
|
|
4
4
|
|
|
5
5
|
//#region src/nuxt.d.ts
|
package/dist/nuxt.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./chunk--u3MIqq1.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";
|
|
5
5
|
import "@nuxt/schema";
|
|
6
|
-
|
|
7
6
|
//#region src/nuxt.ts
|
|
8
7
|
var nuxt_default = defineNuxtModule({
|
|
9
8
|
meta: {
|
|
10
|
-
name: "nuxt-unplugin-
|
|
11
|
-
configKey: "
|
|
9
|
+
name: "nuxt-unplugin-kubb",
|
|
10
|
+
configKey: "unpluginKubb"
|
|
12
11
|
},
|
|
13
12
|
defaults: void 0,
|
|
14
13
|
setup(options, _nuxt) {
|
|
@@ -16,7 +15,7 @@ var nuxt_default = defineNuxtModule({
|
|
|
16
15
|
addWebpackPlugin(() => webpack_default(options));
|
|
17
16
|
}
|
|
18
17
|
});
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
19
|
export { nuxt_default as default };
|
|
20
|
+
|
|
22
21
|
//# sourceMappingURL=nuxt.js.map
|
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-
|
|
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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const require_unpluginFactory = require("./unpluginFactory-BpZ2psBF.cjs");
|
|
2
|
+
//#region src/rolldown.ts
|
|
3
|
+
var rolldown_default = (0, require("unplugin").createRolldownPlugin)(require_unpluginFactory.unpluginFactory);
|
|
4
|
+
//#endregion
|
|
5
|
+
module.exports = rolldown_default;
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=rolldown.cjs.map
|
|
@@ -0,0 +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,uBAAA,sBAAoCA,wBAAAA,gBAAgB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
+
import { Options } from "./types.js";
|
|
3
|
+
import * as rolldown from "rolldown";
|
|
4
|
+
|
|
5
|
+
//#region src/rolldown.d.ts
|
|
6
|
+
declare const _default: (options?: Options | undefined) => rolldown.Plugin<any> | rolldown.Plugin<any>[];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { _default as default };
|
|
9
|
+
//# sourceMappingURL=rolldown.d.ts.map
|
package/dist/rolldown.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as unpluginFactory } from "./unpluginFactory-0sYXb5x6.js";
|
|
2
|
+
import { createRolldownPlugin } from "unplugin";
|
|
3
|
+
//#region src/rolldown.ts
|
|
4
|
+
var rolldown_default = createRolldownPlugin(unpluginFactory);
|
|
5
|
+
//#endregion
|
|
6
|
+
export { rolldown_default as default };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=rolldown.js.map
|
|
@@ -0,0 +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"}
|
package/dist/rollup.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
let unplugin = require("unplugin");
|
|
3
|
-
|
|
1
|
+
const require_unpluginFactory = require("./unpluginFactory-BpZ2psBF.cjs");
|
|
4
2
|
//#region src/rollup.ts
|
|
5
|
-
var rollup_default = (0, unplugin.createRollupPlugin)(
|
|
6
|
-
|
|
3
|
+
var rollup_default = (0, require("unplugin").createRollupPlugin)(require_unpluginFactory.unpluginFactory);
|
|
7
4
|
//#endregion
|
|
8
5
|
module.exports = rollup_default;
|
|
6
|
+
|
|
9
7
|
//# sourceMappingURL=rollup.cjs.map
|
package/dist/rollup.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup.cjs","names":["unpluginFactory"],"sources":["../src/rollup.ts"],"sourcesContent":["import { createRollupPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './
|
|
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,uBAAA,oBAAkCA,wBAAAA,gBAAgB"}
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as __name } from "./chunk
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
1
|
+
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
+
import { Options } from "./types.js";
|
|
3
|
+
import * as rollup from "rollup";
|
|
4
4
|
|
|
5
5
|
//#region src/rollup.d.ts
|
|
6
|
-
declare const _default: (options?: Options | undefined) =>
|
|
6
|
+
declare const _default: (options?: Options | undefined) => rollup.Plugin<any> | rollup.Plugin<any>[];
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default as default };
|
|
9
9
|
//# sourceMappingURL=rollup.d.ts.map
|
package/dist/rollup.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as unpluginFactory } from "./unpluginFactory-0sYXb5x6.js";
|
|
2
2
|
import { createRollupPlugin } from "unplugin";
|
|
3
|
-
|
|
4
3
|
//#region src/rollup.ts
|
|
5
4
|
var rollup_default = createRollupPlugin(unpluginFactory);
|
|
6
|
-
|
|
7
5
|
//#endregion
|
|
8
6
|
export { rollup_default as default };
|
|
7
|
+
|
|
9
8
|
//# sourceMappingURL=rollup.js.map
|
package/dist/rollup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup.js","names":[],"sources":["../src/rollup.ts"],"sourcesContent":["import { createRollupPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './
|
|
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"}
|
package/dist/rspack.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
let unplugin = require("unplugin");
|
|
3
|
-
|
|
1
|
+
const require_unpluginFactory = require("./unpluginFactory-BpZ2psBF.cjs");
|
|
4
2
|
//#region src/rspack.ts
|
|
5
|
-
var rspack_default = (0, unplugin.createRspackPlugin)(
|
|
6
|
-
|
|
3
|
+
var rspack_default = (0, require("unplugin").createRspackPlugin)(require_unpluginFactory.unpluginFactory);
|
|
7
4
|
//#endregion
|
|
8
5
|
module.exports = rspack_default;
|
|
6
|
+
|
|
9
7
|
//# sourceMappingURL=rspack.cjs.map
|
package/dist/rspack.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rspack.cjs","names":["unpluginFactory"],"sources":["../src/rspack.ts"],"sourcesContent":["import { createRspackPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './
|
|
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,uBAAA,oBAAkCA,wBAAAA,gBAAgB"}
|
package/dist/rspack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as __name } from "./chunk
|
|
2
|
-
import {
|
|
1
|
+
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
+
import { Options } from "./types.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rspack.d.ts
|
|
5
5
|
declare const _default: (options?: Options | undefined) => RspackPluginInstance;
|
package/dist/rspack.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as unpluginFactory } from "./unpluginFactory-0sYXb5x6.js";
|
|
2
2
|
import { createRspackPlugin } from "unplugin";
|
|
3
|
-
|
|
4
3
|
//#region src/rspack.ts
|
|
5
4
|
var rspack_default = createRspackPlugin(unpluginFactory);
|
|
6
|
-
|
|
7
5
|
//#endregion
|
|
8
6
|
export { rspack_default as default };
|
|
7
|
+
|
|
9
8
|
//# sourceMappingURL=rspack.js.map
|
package/dist/rspack.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rspack.js","names":[],"sources":["../src/rspack.ts"],"sourcesContent":["import { createRspackPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './
|
|
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"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
1
|
+
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
+
import { UserConfig } from "@kubb/core";
|
|
3
|
+
|
|
4
|
+
//#region src/types.d.ts
|
|
5
|
+
type Options = {
|
|
6
|
+
/**
|
|
7
|
+
* Kubb config without the Hooks.
|
|
8
|
+
*/
|
|
9
|
+
config?: Omit<UserConfig, 'hooks'>;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Options };
|
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {};
|