unplugin-kubb 5.0.0-beta.1 → 5.0.0-beta.100
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 +17 -10
- package/README.md +36 -61
- package/dist/astro.cjs +1 -1
- package/dist/astro.cjs.map +1 -1
- package/dist/astro.d.ts +19 -3
- package/dist/astro.js +1 -1
- package/dist/astro.js.map +1 -1
- package/dist/esbuild.cjs +1 -1
- package/dist/esbuild.cjs.map +1 -1
- package/dist/esbuild.d.ts +2 -4
- package/dist/esbuild.js +1 -1
- package/dist/esbuild.js.map +1 -1
- package/dist/farm.cjs +1 -1
- package/dist/farm.cjs.map +1 -1
- package/dist/farm.d.ts +2 -4
- package/dist/farm.js +1 -1
- package/dist/farm.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/nuxt.cjs +1 -1
- package/dist/nuxt.cjs.map +1 -1
- package/dist/nuxt.d.ts +3 -4
- package/dist/nuxt.js +1 -1
- package/dist/nuxt.js.map +1 -1
- package/dist/rolldown.cjs +1 -1
- package/dist/rolldown.cjs.map +1 -1
- package/dist/rolldown.d.ts +2 -4
- package/dist/rolldown.js +1 -1
- package/dist/rolldown.js.map +1 -1
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.cjs.map +1 -1
- package/dist/rollup.d.ts +2 -4
- package/dist/rollup.js +1 -1
- package/dist/rollup.js.map +1 -1
- package/dist/rspack.cjs +1 -1
- package/dist/rspack.cjs.map +1 -1
- package/dist/rspack.d.ts +1 -2
- package/dist/rspack.js +1 -1
- package/dist/rspack.js.map +1 -1
- package/dist/types.d.ts +1 -2
- package/dist/unpluginFactory-BYY-auoy.js +120 -0
- package/dist/unpluginFactory-BYY-auoy.js.map +1 -0
- package/dist/unpluginFactory-Cj8fnyy9.cjs +157 -0
- package/dist/unpluginFactory-Cj8fnyy9.cjs.map +1 -0
- package/dist/unpluginFactory.cjs +1 -1
- package/dist/unpluginFactory.d.ts +8 -2
- package/dist/unpluginFactory.js +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.ts +2 -4
- package/dist/vite.js +1 -1
- package/dist/vite.js.map +1 -1
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.cjs.map +1 -1
- package/dist/webpack.d.ts +2 -5
- package/dist/webpack.js +1 -1
- package/dist/webpack.js.map +1 -1
- package/package.json +18 -24
- package/dist/unpluginFactory-B_nDFVCO.js +0 -231
- package/dist/unpluginFactory-B_nDFVCO.js.map +0 -1
- package/dist/unpluginFactory-D_BipCPX.cjs +0 -274
- package/dist/unpluginFactory-D_BipCPX.cjs.map +0 -1
- package/src/astro.ts +0 -12
- package/src/esbuild.ts +0 -5
- package/src/farm.ts +0 -5
- package/src/index.ts +0 -10
- package/src/nuxt.ts +0 -22
- package/src/rolldown.ts +0 -5
- package/src/rollup.ts +0 -5
- package/src/rspack.ts +0 -5
- package/src/types.ts +0 -8
- package/src/unpluginFactory.ts +0 -157
- package/src/vite.ts +0 -5
- package/src/webpack.ts +0 -7
- /package/dist/{chunk--u3MIqq1.js → rolldown-runtime-C0LytTxp.js} +0 -0
package/LICENSE
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
This repository contains software under two licenses:
|
|
1
|
+
MIT License
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
MIT License — see licenses/LICENSE-MIT for the full license text.
|
|
3
|
+
Copyright (c) 2026 Stijn Van Hulle
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
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:
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<h1>Kubb Unplugin</h1>
|
|
3
2
|
<a href="https://kubb.dev" target="_blank" rel="noopener noreferrer">
|
|
4
|
-
<img
|
|
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]
|
|
8
7
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
9
|
-
[![
|
|
8
|
+
[![Stars][stars-src]][stars-href]
|
|
10
9
|
[![License][license-src]][license-href]
|
|
11
|
-
[![
|
|
10
|
+
[![Node][node-src]][node-href]
|
|
12
11
|
|
|
13
12
|
<h4>
|
|
14
|
-
<a href="https://
|
|
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,23 +18,29 @@
|
|
|
21
18
|
</h4>
|
|
22
19
|
</div>
|
|
23
20
|
|
|
24
|
-
|
|
21
|
+
<br />
|
|
22
|
+
|
|
23
|
+
# unplugin-kubb
|
|
24
|
+
|
|
25
|
+
### Universal build integration for Kubb
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
Integration of Kubb for Vite, Webpack, Rollup, esbuild, Rspack, Nuxt, and Astro powered by [unplugin](https://github.com/unjs/unplugin).
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
27
30
|
|
|
28
31
|
```bash
|
|
29
|
-
|
|
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
|
|
33
40
|
import kubb from 'unplugin-kubb/vite'
|
|
34
41
|
|
|
35
42
|
export default defineConfig({
|
|
36
|
-
plugins: [
|
|
37
|
-
kubb({
|
|
38
|
-
/* options */
|
|
39
|
-
}),
|
|
40
|
-
],
|
|
43
|
+
plugins: [kubb({/* options */})],
|
|
41
44
|
})
|
|
42
45
|
```
|
|
43
46
|
|
|
@@ -45,52 +48,23 @@ export default defineConfig({
|
|
|
45
48
|
import kubb from 'unplugin-kubb/rollup'
|
|
46
49
|
|
|
47
50
|
export default {
|
|
48
|
-
plugins: [
|
|
49
|
-
kubb({
|
|
50
|
-
/* options */
|
|
51
|
-
}),
|
|
52
|
-
],
|
|
51
|
+
plugins: [kubb({/* options */})],
|
|
53
52
|
}
|
|
54
53
|
```
|
|
55
54
|
|
|
56
55
|
```typescript
|
|
57
56
|
module.exports = {
|
|
58
57
|
/* ... */
|
|
59
|
-
plugins: [
|
|
60
|
-
require('unplugin-kubb/webpack')({
|
|
61
|
-
/* options */
|
|
62
|
-
}),
|
|
63
|
-
],
|
|
58
|
+
plugins: [require('unplugin-kubb/webpack')({/* options */})],
|
|
64
59
|
}
|
|
65
60
|
```
|
|
66
61
|
|
|
67
62
|
```typescript
|
|
68
63
|
export default defineNuxtConfig({
|
|
69
|
-
modules: [
|
|
70
|
-
[
|
|
71
|
-
'unplugin-kubb/nuxt',
|
|
72
|
-
{
|
|
73
|
-
/* options */
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
],
|
|
64
|
+
modules: [['unplugin-kubb/nuxt', {/* options */}]],
|
|
77
65
|
})
|
|
78
66
|
```
|
|
79
67
|
|
|
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
68
|
```typescript
|
|
95
69
|
import { build } from 'esbuild'
|
|
96
70
|
import kubb from 'unplugin-kubb/esbuild'
|
|
@@ -114,9 +88,10 @@ type Options = {
|
|
|
114
88
|
|
|
115
89
|
## Supporting Kubb
|
|
116
90
|
|
|
117
|
-
Kubb
|
|
91
|
+
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
92
|
|
|
119
93
|
- [Become a Sponsor on GitHub](https://github.com/sponsors/stijnvanhulle)
|
|
94
|
+
- [See sponsorship tiers and our sponsors](https://kubb.dev/sponsors)
|
|
120
95
|
|
|
121
96
|
<p align="center">
|
|
122
97
|
<a href="https://github.com/sponsors/stijnvanhulle">
|
|
@@ -124,19 +99,19 @@ Kubb uses an MIT-licensed open source project with its ongoing development made
|
|
|
124
99
|
</a>
|
|
125
100
|
</p>
|
|
126
101
|
|
|
102
|
+
## License
|
|
103
|
+
|
|
104
|
+
[MIT](https://github.com/kubb-labs/kubb/blob/main/licenses/LICENSE-MIT)
|
|
105
|
+
|
|
127
106
|
<!-- Badges -->
|
|
128
107
|
|
|
129
|
-
[npm-version-src]: https://
|
|
130
|
-
[npm-version-href]: https://
|
|
131
|
-
[npm-downloads-src]: https://
|
|
132
|
-
[npm-downloads-href]: https://
|
|
133
|
-
[
|
|
108
|
+
[npm-version-src]: https://shieldcn.dev/npm/v/unplugin-kubb.svg?variant=secondary&size=xs&theme=zinc&mode=dark
|
|
109
|
+
[npm-version-href]: https://npmx.dev/package/unplugin-kubb
|
|
110
|
+
[npm-downloads-src]: https://shieldcn.dev/npm/dm/unplugin-kubb.svg?variant=secondary&size=xs&theme=zinc&mode=dark
|
|
111
|
+
[npm-downloads-href]: https://npmx.dev/package/unplugin-kubb
|
|
112
|
+
[stars-src]: https://shieldcn.dev/github/stars/kubb-labs/kubb.svg?variant=secondary&size=xs&theme=zinc&mode=dark
|
|
113
|
+
[stars-href]: https://github.com/kubb-labs/kubb
|
|
114
|
+
[license-src]: https://shieldcn.dev/npm/license/unplugin-kubb.svg?variant=secondary&size=xs&theme=zinc
|
|
134
115
|
[license-href]: https://github.com/kubb-labs/kubb/blob/main/LICENSE
|
|
135
|
-
[
|
|
136
|
-
[
|
|
137
|
-
[minified-src]: https://img.shields.io/bundlephobia/min/unplugin-kubb?style=flat&colorA=18181B&colorB=f58517
|
|
138
|
-
[minified-href]: https://www.npmjs.com/package/unplugin-kubb
|
|
139
|
-
[coverage-src]: https://img.shields.io/codecov/c/github/kubb-labs/kubb?style=flat&colorA=18181B&colorB=f58517
|
|
140
|
-
[coverage-href]: https://www.npmjs.com/package/unplugin-kubb
|
|
141
|
-
[sponsors-src]: https://img.shields.io/github/sponsors/stijnvanhulle?style=flat&colorA=18181B&colorB=f58517
|
|
142
|
-
[sponsors-href]: https://github.com/sponsors/stijnvanhulle/
|
|
116
|
+
[node-src]: https://shieldcn.dev/npm/node/unplugin-kubb.svg?variant=secondary&size=xs&theme=zinc&mode=dark
|
|
117
|
+
[node-href]: https://npmx.dev/package/unplugin-kubb
|
package/dist/astro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_unpluginFactory = require("./unpluginFactory-
|
|
1
|
+
const require_unpluginFactory = require("./unpluginFactory-Cj8fnyy9.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) => ({
|
package/dist/astro.cjs.map
CHANGED
|
@@ -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):
|
|
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\n/**\n * Minimal shape of the params Astro passes to its `astro:config:setup` hook.\n * Kept local rather than depending on `astro` for a single hook signature.\n */\ntype AstroConfigSetupParams = {\n config: {\n vite: {\n plugins?: Array<unknown>\n }\n }\n}\n\ntype AstroIntegration = {\n name: string\n hooks: {\n 'astro:config:setup': (params: AstroConfigSetupParams) => void | Promise<void>\n }\n}\n\nexport default (options: Options): AstroIntegration => ({\n name: 'unplugin-kubb',\n hooks: {\n 'astro:config:setup': async (astro) => {\n astro.config.vite.plugins ||= []\n astro.config.vite.plugins.push(vitePlugin(options))\n },\n },\n})\n"],"mappings":";;;AAsBA,IAAA,gBAAA,wCAAA,QAAgB,aAAwC;CACtD,MAAM;CACN,OAAO,EACL,sBAAsB,OAAO,UAAU;EACrC,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,8 +1,24 @@
|
|
|
1
|
-
import { t as __name } from "./
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
2
|
import { Options } from "./types.js";
|
|
3
|
-
|
|
4
3
|
//#region src/astro.d.ts
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Minimal shape of the params Astro passes to its `astro:config:setup` hook.
|
|
6
|
+
* Kept local rather than depending on `astro` for a single hook signature.
|
|
7
|
+
*/
|
|
8
|
+
type AstroConfigSetupParams = {
|
|
9
|
+
config: {
|
|
10
|
+
vite: {
|
|
11
|
+
plugins?: Array<unknown>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
type AstroIntegration = {
|
|
16
|
+
name: string;
|
|
17
|
+
hooks: {
|
|
18
|
+
'astro:config:setup': (params: AstroConfigSetupParams) => void | Promise<void>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
declare const _default: (options: Options) => AstroIntegration;
|
|
6
22
|
//#endregion
|
|
7
23
|
export { _default as default };
|
|
8
24
|
//# sourceMappingURL=astro.d.ts.map
|
package/dist/astro.js
CHANGED
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):
|
|
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\n/**\n * Minimal shape of the params Astro passes to its `astro:config:setup` hook.\n * Kept local rather than depending on `astro` for a single hook signature.\n */\ntype AstroConfigSetupParams = {\n config: {\n vite: {\n plugins?: Array<unknown>\n }\n }\n}\n\ntype AstroIntegration = {\n name: string\n hooks: {\n 'astro:config:setup': (params: AstroConfigSetupParams) => void | Promise<void>\n }\n}\n\nexport default (options: Options): AstroIntegration => ({\n name: 'unplugin-kubb',\n hooks: {\n 'astro:config:setup': async (astro) => {\n astro.config.vite.plugins ||= []\n astro.config.vite.plugins.push(vitePlugin(options))\n },\n },\n})\n"],"mappings":";;;AAsBA,IAAA,gBAAA,wBAAgB,aAAwC;CACtD,MAAM;CACN,OAAO,EACL,sBAAsB,OAAO,UAAU;EACrC,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-
|
|
1
|
+
const require_unpluginFactory = require("./unpluginFactory-Cj8fnyy9.cjs");
|
|
2
2
|
//#region src/esbuild.ts
|
|
3
3
|
var esbuild_default = (0, require("unplugin").createEsbuildPlugin)(require_unpluginFactory.unpluginFactory);
|
|
4
4
|
//#endregion
|
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 './unpluginFactory.ts'\n\nexport default createEsbuildPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,mBAAA,
|
|
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,CAAA,CAAA,oBAAA,CAAmCA,wBAAAA,eAAe"}
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { t as __name } from "./
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
2
|
import { Options } from "./types.js";
|
|
3
|
-
import * as _$esbuild from "esbuild";
|
|
4
|
-
|
|
5
3
|
//#region src/esbuild.d.ts
|
|
6
|
-
declare const _default: (options?: Options | undefined) =>
|
|
4
|
+
declare const _default: (options?: Options | undefined) => import("esbuild").Plugin;
|
|
7
5
|
//#endregion
|
|
8
6
|
export { _default as default };
|
|
9
7
|
//# sourceMappingURL=esbuild.d.ts.map
|
package/dist/esbuild.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as unpluginFactory } from "./unpluginFactory-
|
|
1
|
+
import { t as unpluginFactory } from "./unpluginFactory-BYY-auoy.js";
|
|
2
2
|
import { createEsbuildPlugin } from "unplugin";
|
|
3
3
|
//#region src/esbuild.ts
|
|
4
4
|
var esbuild_default = createEsbuildPlugin(unpluginFactory);
|
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 './unpluginFactory.ts'\n\nexport default createEsbuildPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,kBAAe,oBAAoB,
|
|
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-
|
|
1
|
+
const require_unpluginFactory = require("./unpluginFactory-Cj8fnyy9.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,
|
|
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,CAAA,CAAA,iBAAA,CAAgCA,wBAAAA,eAAe"}
|
package/dist/farm.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { t as __name } from "./
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
2
|
import { Options } from "./types.js";
|
|
3
|
-
import * as _$_farmfe_core0 from "@farmfe/core";
|
|
4
|
-
|
|
5
3
|
//#region src/farm.d.ts
|
|
6
|
-
declare const _default: (options?: Options | undefined) =>
|
|
4
|
+
declare const _default: (options?: Options | undefined) => import("@farmfe/core").JsPlugin;
|
|
7
5
|
//#endregion
|
|
8
6
|
export { _default as default };
|
|
9
7
|
//# sourceMappingURL=farm.d.ts.map
|
package/dist/farm.js
CHANGED
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,
|
|
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-
|
|
5
|
+
const require_unpluginFactory = require("./unpluginFactory-Cj8fnyy9.cjs");
|
|
6
6
|
//#region src/index.ts
|
|
7
|
-
const plugin = /*
|
|
7
|
+
const plugin = /* #__PURE__ */ (0, require("unplugin").createUnplugin)(require_unpluginFactory.unpluginFactory);
|
|
8
8
|
//#endregion
|
|
9
9
|
exports.default = plugin;
|
|
10
10
|
exports.unplugin = plugin;
|
package/dist/index.cjs.map
CHANGED
|
@@ -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/
|
|
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/plugin-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,CAAA,CAAA,eAAA,CAAeA,wBAAAA,eAAe"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { t as __name } from "./
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
2
|
import { Options } from "./types.js";
|
|
3
3
|
import { unpluginFactory } from "./unpluginFactory.js";
|
|
4
|
-
import
|
|
5
|
-
import { BarrelType } from "@kubb/middleware-barrel";
|
|
6
|
-
|
|
4
|
+
import { BarrelType } from "@kubb/plugin-barrel";
|
|
7
5
|
//#region src/index.d.ts
|
|
8
|
-
declare const plugin:
|
|
6
|
+
declare const plugin: import("unplugin").UnpluginInstance<Options | undefined, boolean>;
|
|
9
7
|
//#endregion
|
|
10
8
|
export { type BarrelType, type Options, plugin as default, plugin as unplugin, unpluginFactory };
|
|
11
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as unpluginFactory } from "./unpluginFactory-
|
|
1
|
+
import { t as unpluginFactory } from "./unpluginFactory-BYY-auoy.js";
|
|
2
2
|
import { createUnplugin } from "unplugin";
|
|
3
3
|
//#region src/index.ts
|
|
4
|
-
const plugin = /*
|
|
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/
|
|
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/plugin-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
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
|
|
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,iBAAA,CAA+C;CAC7C,MAAM;EACJ,MAAM;EACN,WAAW;CACb;CACA,UAAU,KAAA;CACV,MAAM,SAAS,OAAO;EACpB,CAAA,GAAA,UAAA,cAAA,OAAoBA,aAAK,OAAO,CAAC;EACjC,CAAA,GAAA,UAAA,iBAAA,OAAuBC,gBAAQ,OAAO,CAAC;CACzC;AACF,CAAC"}
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { t as __name } from "./
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
2
|
import { Options } from "./types.js";
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import "@nuxt/schema";
|
|
5
4
|
//#region src/nuxt.d.ts
|
|
6
5
|
interface ModuleOptions extends Options {}
|
|
7
|
-
declare const _default:
|
|
6
|
+
declare const _default: import("@nuxt/schema").NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
8
7
|
//#endregion
|
|
9
8
|
export { ModuleOptions, _default as default };
|
|
10
9
|
//# sourceMappingURL=nuxt.d.ts.map
|
package/dist/nuxt.js
CHANGED
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
|
|
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-
|
|
1
|
+
const require_unpluginFactory = require("./unpluginFactory-Cj8fnyy9.cjs");
|
|
2
2
|
//#region src/rolldown.ts
|
|
3
3
|
var rolldown_default = (0, require("unplugin").createRolldownPlugin)(require_unpluginFactory.unpluginFactory);
|
|
4
4
|
//#endregion
|
package/dist/rolldown.cjs.map
CHANGED
|
@@ -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,
|
|
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,CAAA,CAAA,qBAAA,CAAoCA,wBAAAA,eAAe"}
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { t as __name } from "./
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
2
|
import { Options } from "./types.js";
|
|
3
|
-
import * as _$rolldown from "rolldown";
|
|
4
|
-
|
|
5
3
|
//#region src/rolldown.d.ts
|
|
6
|
-
declare const _default: (options?: Options | undefined) =>
|
|
4
|
+
declare const _default: (options?: Options | undefined) => import("rolldown").Plugin<any> | import("rolldown").Plugin<any>[];
|
|
7
5
|
//#endregion
|
|
8
6
|
export { _default as default };
|
|
9
7
|
//# sourceMappingURL=rolldown.d.ts.map
|
package/dist/rolldown.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as unpluginFactory } from "./unpluginFactory-
|
|
1
|
+
import { t as unpluginFactory } from "./unpluginFactory-BYY-auoy.js";
|
|
2
2
|
import { createRolldownPlugin } from "unplugin";
|
|
3
3
|
//#region src/rolldown.ts
|
|
4
4
|
var rolldown_default = createRolldownPlugin(unpluginFactory);
|
package/dist/rolldown.js.map
CHANGED
|
@@ -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,
|
|
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-
|
|
1
|
+
const require_unpluginFactory = require("./unpluginFactory-Cj8fnyy9.cjs");
|
|
2
2
|
//#region src/rollup.ts
|
|
3
3
|
var rollup_default = (0, require("unplugin").createRollupPlugin)(require_unpluginFactory.unpluginFactory);
|
|
4
4
|
//#endregion
|
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 './unpluginFactory.ts'\n\nexport default createRollupPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,kBAAA,
|
|
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,CAAA,CAAA,mBAAA,CAAkCA,wBAAAA,eAAe"}
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { t as __name } from "./
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
2
|
import { Options } from "./types.js";
|
|
3
|
-
import * as _$rollup from "rollup";
|
|
4
|
-
|
|
5
3
|
//#region src/rollup.d.ts
|
|
6
|
-
declare const _default: (options?: Options | undefined) =>
|
|
4
|
+
declare const _default: (options?: Options | undefined) => import("rollup").Plugin<any> | import("rollup").Plugin<any>[];
|
|
7
5
|
//#endregion
|
|
8
6
|
export { _default as default };
|
|
9
7
|
//# sourceMappingURL=rollup.d.ts.map
|
package/dist/rollup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as unpluginFactory } from "./unpluginFactory-
|
|
1
|
+
import { t as unpluginFactory } from "./unpluginFactory-BYY-auoy.js";
|
|
2
2
|
import { createRollupPlugin } from "unplugin";
|
|
3
3
|
//#region src/rollup.ts
|
|
4
4
|
var rollup_default = createRollupPlugin(unpluginFactory);
|
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 './unpluginFactory.ts'\n\nexport default createRollupPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,iBAAe,mBAAmB,
|
|
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-
|
|
1
|
+
const require_unpluginFactory = require("./unpluginFactory-Cj8fnyy9.cjs");
|
|
2
2
|
//#region src/rspack.ts
|
|
3
3
|
var rspack_default = (0, require("unplugin").createRspackPlugin)(require_unpluginFactory.unpluginFactory);
|
|
4
4
|
//#endregion
|
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 './unpluginFactory.ts'\n\nexport default createRspackPlugin(unpluginFactory)\n"],"mappings":";;AAIA,IAAA,kBAAA,
|
|
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,CAAA,CAAA,mBAAA,CAAkCA,wBAAAA,eAAe"}
|
package/dist/rspack.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as __name } from "./
|
|
1
|
+
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
2
|
import { Options } from "./types.js";
|
|
3
|
-
|
|
4
3
|
//#region src/rspack.d.ts
|
|
5
4
|
declare const _default: (options?: Options | undefined) => RspackPluginInstance;
|
|
6
5
|
//#endregion
|
package/dist/rspack.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as unpluginFactory } from "./unpluginFactory-
|
|
1
|
+
import { t as unpluginFactory } from "./unpluginFactory-BYY-auoy.js";
|
|
2
2
|
import { createRspackPlugin } from "unplugin";
|
|
3
3
|
//#region src/rspack.ts
|
|
4
4
|
var rspack_default = createRspackPlugin(unpluginFactory);
|
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 './unpluginFactory.ts'\n\nexport default createRspackPlugin(unpluginFactory)\n"],"mappings":";;;AAIA,IAAA,iBAAe,mBAAmB,
|
|
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"}
|