@powerlines/unplugin 0.0.4
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 +201 -0
- package/README.md +305 -0
- package/dist/_virtual/_rolldown/runtime.cjs +45 -0
- package/dist/_virtual/_rolldown/runtime.mjs +36 -0
- package/dist/astro.cjs +37 -0
- package/dist/astro.d.cts +27 -0
- package/dist/astro.d.cts.map +1 -0
- package/dist/astro.d.mts +27 -0
- package/dist/astro.d.mts.map +1 -0
- package/dist/astro.mjs +36 -0
- package/dist/astro.mjs.map +1 -0
- package/dist/esbuild.cjs +155 -0
- package/dist/esbuild.d.cts +69 -0
- package/dist/esbuild.d.cts.map +1 -0
- package/dist/esbuild.d.mts +69 -0
- package/dist/esbuild.d.mts.map +1 -0
- package/dist/esbuild.mjs +149 -0
- package/dist/esbuild.mjs.map +1 -0
- package/dist/farm.cjs +56 -0
- package/dist/farm.d.cts +51 -0
- package/dist/farm.d.cts.map +1 -0
- package/dist/farm.d.mts +51 -0
- package/dist/farm.d.mts.map +1 -0
- package/dist/farm.mjs +54 -0
- package/dist/farm.mjs.map +1 -0
- package/dist/index.cjs +46 -0
- package/dist/index.d.cts +37 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +37 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +39 -0
- package/dist/index.mjs.map +1 -0
- package/dist/next.cjs +37 -0
- package/dist/next.d.cts +25 -0
- package/dist/next.d.cts.map +1 -0
- package/dist/next.d.mts +25 -0
- package/dist/next.d.mts.map +1 -0
- package/dist/next.mjs +36 -0
- package/dist/next.mjs.map +1 -0
- package/dist/nuxt.cjs +44 -0
- package/dist/nuxt.d.cts +28 -0
- package/dist/nuxt.d.cts.map +1 -0
- package/dist/nuxt.d.mts +29 -0
- package/dist/nuxt.d.mts.map +1 -0
- package/dist/nuxt.mjs +44 -0
- package/dist/nuxt.mjs.map +1 -0
- package/dist/package.cjs +18 -0
- package/dist/package.mjs +7 -0
- package/dist/package.mjs.map +1 -0
- package/dist/rolldown.cjs +161 -0
- package/dist/rolldown.d.cts +65 -0
- package/dist/rolldown.d.cts.map +1 -0
- package/dist/rolldown.d.mts +65 -0
- package/dist/rolldown.d.mts.map +1 -0
- package/dist/rolldown.mjs +153 -0
- package/dist/rolldown.mjs.map +1 -0
- package/dist/rollup.cjs +159 -0
- package/dist/rollup.d.cts +64 -0
- package/dist/rollup.d.cts.map +1 -0
- package/dist/rollup.d.mts +64 -0
- package/dist/rollup.d.mts.map +1 -0
- package/dist/rollup.mjs +149 -0
- package/dist/rollup.mjs.map +1 -0
- package/dist/rspack.cjs +95 -0
- package/dist/rspack.d.cts +58 -0
- package/dist/rspack.d.cts.map +1 -0
- package/dist/rspack.d.mts +58 -0
- package/dist/rspack.d.mts.map +1 -0
- package/dist/rspack.mjs +90 -0
- package/dist/rspack.mjs.map +1 -0
- package/dist/tsdown.cjs +217 -0
- package/dist/tsdown.d.cts +63 -0
- package/dist/tsdown.d.cts.map +1 -0
- package/dist/tsdown.d.mts +63 -0
- package/dist/tsdown.d.mts.map +1 -0
- package/dist/tsdown.mjs +209 -0
- package/dist/tsdown.mjs.map +1 -0
- package/dist/tsup.cjs +116 -0
- package/dist/tsup.d.cts +49 -0
- package/dist/tsup.d.cts.map +1 -0
- package/dist/tsup.d.mts +49 -0
- package/dist/tsup.d.mts.map +1 -0
- package/dist/tsup.mjs +110 -0
- package/dist/tsup.mjs.map +1 -0
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +12 -0
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.mts +12 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/types.mjs +1 -0
- package/dist/unloader.cjs +52 -0
- package/dist/unloader.d.cts +46 -0
- package/dist/unloader.d.cts.map +1 -0
- package/dist/unloader.d.mts +46 -0
- package/dist/unloader.d.mts.map +1 -0
- package/dist/unloader.mjs +49 -0
- package/dist/unloader.mjs.map +1 -0
- package/dist/unplugin.cjs +239 -0
- package/dist/unplugin.d.cts +60 -0
- package/dist/unplugin.d.cts.map +1 -0
- package/dist/unplugin.d.mts +60 -0
- package/dist/unplugin.d.mts.map +1 -0
- package/dist/unplugin.mjs +234 -0
- package/dist/unplugin.mjs.map +1 -0
- package/dist/vite.cjs +161 -0
- package/dist/vite.d.cts +59 -0
- package/dist/vite.d.cts.map +1 -0
- package/dist/vite.d.mts +59 -0
- package/dist/vite.d.mts.map +1 -0
- package/dist/vite.mjs +155 -0
- package/dist/vite.mjs.map +1 -0
- package/dist/webpack.cjs +94 -0
- package/dist/webpack.d.cts +58 -0
- package/dist/webpack.d.cts.map +1 -0
- package/dist/webpack.d.mts +58 -0
- package/dist/webpack.d.mts.map +1 -0
- package/dist/webpack.mjs +89 -0
- package/dist/webpack.mjs.map +1 -0
- package/package.json +163 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { UnpluginExecutionOptions, UnpluginFactory } from "./types.mjs";
|
|
2
|
+
import { UnpluginFactoryDecorator, UnpluginFactoryOptions } from "./unplugin.mjs";
|
|
3
|
+
import * as _$_powerlines_core0 from "@powerlines/core";
|
|
4
|
+
import { Context, ExecutionContext } from "@powerlines/core";
|
|
5
|
+
import { DeepPartial } from "@stryke/types/base";
|
|
6
|
+
import * as _$webpack from "webpack";
|
|
7
|
+
import { WebpackOptionsNormalized } from "webpack";
|
|
8
|
+
|
|
9
|
+
//#region src/webpack.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* Resolves the options for [webpack](https://webpack.js.org/).
|
|
12
|
+
*
|
|
13
|
+
* @param context - The build context.
|
|
14
|
+
* @returns The resolved options.
|
|
15
|
+
*/
|
|
16
|
+
declare function resolveOptions(context: Context): DeepPartial<WebpackOptionsNormalized>;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a Webpack plugin factory that generates a plugin instance.
|
|
19
|
+
*
|
|
20
|
+
* @see https://webpack.js.org/api/plugins/
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* // webpack.config.ts
|
|
25
|
+
* import { createWebpackFactory } from "@powerlines/unplugin/webpack";
|
|
26
|
+
*
|
|
27
|
+
* const powerlinesPlugin = createWebpackFactory({ name: "example-app", ... });
|
|
28
|
+
*
|
|
29
|
+
* export default defineConfig({
|
|
30
|
+
* plugins: [powerlinesPlugin()],
|
|
31
|
+
* });
|
|
32
|
+
*
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @param options - The options to create the plugin factory with.
|
|
36
|
+
* @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.
|
|
37
|
+
* @returns A function that generates a Webpack plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your Webpack build.
|
|
38
|
+
*/
|
|
39
|
+
declare function createWebpackFactory<TContext extends ExecutionContext>(options?: Omit<UnpluginFactoryOptions, "variant">, decorate?: UnpluginFactoryDecorator<TContext>): UnpluginFactory<ExecutionContext<_$_powerlines_core0.ResolvedConfig, unknown>>;
|
|
40
|
+
/**
|
|
41
|
+
* An Webpack plugin that will invoke the Powerlines API hooks during the build process.
|
|
42
|
+
*
|
|
43
|
+
* @see https://webpack.js.org/contribute/writing-a-plugin/#basic-plugin-architecture
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```js
|
|
47
|
+
* // webpack.config.js
|
|
48
|
+
* import powerlines from "@powerlines/unplugin/webpack";
|
|
49
|
+
*
|
|
50
|
+
* export default {
|
|
51
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
declare const plugin: (options?: UnpluginExecutionOptions | undefined) => _$webpack.WebpackPluginInstance;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { createWebpackFactory, plugin as default, plugin, resolveOptions };
|
|
58
|
+
//# sourceMappingURL=webpack.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack.d.mts","names":[],"sources":["../src/webpack.ts"],"mappings":";;;;;;;;;;;;;;AAqCA;iBAAgB,cAAA,CACd,OAAA,EAAS,OAAA,GACR,WAAA,CAAY,wBAAA;;;;;;;;;;;;;AAiEf;;;;;;;;;;iBAAgB,oBAAA,kBAAsC,gBAAA,CAAA,CACpD,OAAA,GAAS,IAAA,CAAK,sBAAA,cACd,QAAA,GAAU,wBAAA,CAAyB,QAAA,IAA8B,eAAA,CAAA,gBAAA,CAA/B,mBAAA,CAA+B,cAAA;;;;;;;;;;;;;;;;cAgCtD,MAAA,GAAM,OAAA,GAA8C,wBAAA,iBAA9C,SAAA,CAAA,qBAAA"}
|
package/dist/webpack.mjs
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { createUnpluginFactory } from "./unplugin.mjs";
|
|
2
|
+
import { joinPaths } from "@stryke/path/join-paths";
|
|
3
|
+
import defu from "defu";
|
|
4
|
+
import { createWebpackPlugin } from "unplugin";
|
|
5
|
+
|
|
6
|
+
//#region src/webpack.ts
|
|
7
|
+
/**
|
|
8
|
+
* Resolves the options for [webpack](https://webpack.js.org/).
|
|
9
|
+
*
|
|
10
|
+
* @param context - The build context.
|
|
11
|
+
* @returns The resolved options.
|
|
12
|
+
*/
|
|
13
|
+
function resolveOptions(context) {
|
|
14
|
+
return {
|
|
15
|
+
output: { path: context.config.output.path },
|
|
16
|
+
name: context.config.name,
|
|
17
|
+
resolve: { alias: context.alias },
|
|
18
|
+
node: context.config.platform === "node" ? {
|
|
19
|
+
__dirname: true,
|
|
20
|
+
__filename: true,
|
|
21
|
+
global: true
|
|
22
|
+
} : false,
|
|
23
|
+
mode: context.config.mode === "development" ? "development" : "production",
|
|
24
|
+
cache: {
|
|
25
|
+
type: "filesystem",
|
|
26
|
+
cacheDirectory: joinPaths(context.cachePath, "webpack", "cache")
|
|
27
|
+
},
|
|
28
|
+
recordsInputPath: joinPaths(context.cachePath, "webpack", ".webpack-records.json"),
|
|
29
|
+
recordsOutputPath: joinPaths(context.cachePath, "webpack", ".webpack-records.json"),
|
|
30
|
+
context: joinPaths(context.config.cwd, context.config.root),
|
|
31
|
+
devtool: context.config.output.sourceMap ? "source-map" : false,
|
|
32
|
+
optimization: { minimize: context.config.output.minify }
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Creates a Webpack plugin factory that generates a plugin instance.
|
|
37
|
+
*
|
|
38
|
+
* @see https://webpack.js.org/api/plugins/
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* // webpack.config.ts
|
|
43
|
+
* import { createWebpackFactory } from "@powerlines/unplugin/webpack";
|
|
44
|
+
*
|
|
45
|
+
* const powerlinesPlugin = createWebpackFactory({ name: "example-app", ... });
|
|
46
|
+
*
|
|
47
|
+
* export default defineConfig({
|
|
48
|
+
* plugins: [powerlinesPlugin()],
|
|
49
|
+
* });
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param options - The options to create the plugin factory with.
|
|
54
|
+
* @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.
|
|
55
|
+
* @returns A function that generates a Webpack plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your Webpack build.
|
|
56
|
+
*/
|
|
57
|
+
function createWebpackFactory(options = {}, decorate = (options) => options) {
|
|
58
|
+
return createUnpluginFactory({
|
|
59
|
+
...options,
|
|
60
|
+
variant: "webpack"
|
|
61
|
+
}, (unplugin) => decorate({
|
|
62
|
+
...unplugin,
|
|
63
|
+
webpack(compiler) {
|
|
64
|
+
compiler.hooks.beforeRun.tap("PowerlinesWebpackPlugin", (compiler) => {
|
|
65
|
+
compiler.options = defu(resolveOptions(unplugin.context), compiler.options);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* An Webpack plugin that will invoke the Powerlines API hooks during the build process.
|
|
72
|
+
*
|
|
73
|
+
* @see https://webpack.js.org/contribute/writing-a-plugin/#basic-plugin-architecture
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```js
|
|
77
|
+
* // webpack.config.js
|
|
78
|
+
* import powerlines from "@powerlines/unplugin/webpack";
|
|
79
|
+
*
|
|
80
|
+
* export default {
|
|
81
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
82
|
+
* }
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
const plugin = createWebpackPlugin(createWebpackFactory());
|
|
86
|
+
|
|
87
|
+
//#endregion
|
|
88
|
+
export { createWebpackFactory, plugin as default, plugin, resolveOptions };
|
|
89
|
+
//# sourceMappingURL=webpack.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack.mjs","names":[],"sources":["../src/webpack.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Context, ExecutionContext } from \"@powerlines/core\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { DeepPartial } from \"@stryke/types/base\";\nimport defu from \"defu\";\nimport { createWebpackPlugin, WebpackCompiler } from \"unplugin\";\nimport { WebpackOptionsNormalized } from \"webpack\";\nimport { UnpluginOptions } from \"./types\";\nimport {\n createUnpluginFactory,\n UnpluginFactoryDecorator,\n UnpluginFactoryOptions\n} from \"./unplugin\";\n\n/**\n * Resolves the options for [webpack](https://webpack.js.org/).\n *\n * @param context - The build context.\n * @returns The resolved options.\n */\nexport function resolveOptions(\n context: Context\n): DeepPartial<WebpackOptionsNormalized> {\n return {\n output: {\n path: context.config.output.path\n },\n name: context.config.name,\n resolve: {\n alias: context.alias\n },\n node:\n context.config.platform === \"node\"\n ? {\n __dirname: true,\n __filename: true,\n global: true\n }\n : false,\n mode:\n context.config.mode === \"development\"\n ? (\"development\" as const)\n : (\"production\" as const),\n cache: {\n type: \"filesystem\" as const,\n cacheDirectory: joinPaths(context.cachePath, \"webpack\", \"cache\")\n },\n recordsInputPath: joinPaths(\n context.cachePath,\n \"webpack\",\n \".webpack-records.json\"\n ),\n recordsOutputPath: joinPaths(\n context.cachePath,\n \"webpack\",\n \".webpack-records.json\"\n ),\n context: joinPaths(context.config.cwd, context.config.root),\n devtool: context.config.output.sourceMap ? \"source-map\" : false,\n optimization: {\n minimize: context.config.output.minify\n }\n };\n}\n\n/**\n * Creates a Webpack plugin factory that generates a plugin instance.\n *\n * @see https://webpack.js.org/api/plugins/\n *\n * @example\n * ```ts\n * // webpack.config.ts\n * import { createWebpackFactory } from \"@powerlines/unplugin/webpack\";\n *\n * const powerlinesPlugin = createWebpackFactory({ name: \"example-app\", ... });\n *\n * export default defineConfig({\n * plugins: [powerlinesPlugin()],\n * });\n *\n * ```\n *\n * @param options - The options to create the plugin factory with.\n * @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options.\n * @returns A function that generates a Webpack plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your Webpack build.\n */\nexport function createWebpackFactory<TContext extends ExecutionContext>(\n options: Omit<UnpluginFactoryOptions, \"variant\"> = {},\n decorate: UnpluginFactoryDecorator<TContext> = options => options\n) {\n return createUnpluginFactory({ ...options, variant: \"webpack\" }, unplugin =>\n decorate({\n ...(unplugin as UnpluginOptions<TContext>),\n webpack(compiler: WebpackCompiler) {\n compiler.hooks.beforeRun.tap(\"PowerlinesWebpackPlugin\", compiler => {\n compiler.options = defu(\n resolveOptions(unplugin.context),\n compiler.options\n ) as WebpackOptionsNormalized;\n });\n }\n })\n );\n}\n\n/**\n * An Webpack plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://webpack.js.org/contribute/writing-a-plugin/#basic-plugin-architecture\n *\n * @example\n * ```js\n * // webpack.config.js\n * import powerlines from \"@powerlines/unplugin/webpack\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * }\n * ```\n */\nexport const plugin = createWebpackPlugin(createWebpackFactory());\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AAqCA,SAAgB,eACd,SACuC;CACvC,OAAO;EACL,QAAQ,EACN,MAAM,QAAQ,OAAO,OAAO,MAC7B;EACD,MAAM,QAAQ,OAAO;EACrB,SAAS,EACP,OAAO,QAAQ,OAChB;EACD,MACE,QAAQ,OAAO,aAAa,SACxB;GACE,WAAW;GACX,YAAY;GACZ,QAAQ;GACT,GACD;EACN,MACE,QAAQ,OAAO,SAAS,gBACnB,gBACA;EACP,OAAO;GACL,MAAM;GACN,gBAAgB,UAAU,QAAQ,WAAW,WAAW,QAAQ;GACjE;EACD,kBAAkB,UAChB,QAAQ,WACR,WACA,wBACD;EACD,mBAAmB,UACjB,QAAQ,WACR,WACA,wBACD;EACD,SAAS,UAAU,QAAQ,OAAO,KAAK,QAAQ,OAAO,KAAK;EAC3D,SAAS,QAAQ,OAAO,OAAO,YAAY,eAAe;EAC1D,cAAc,EACZ,UAAU,QAAQ,OAAO,OAAO,QACjC;EACF;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,SAAgB,qBACd,UAAmD,EAAE,EACrD,YAA+C,YAAW,SAC1D;CACA,OAAO,sBAAsB;EAAE,GAAG;EAAS,SAAS;EAAW,GAAE,aAC/D,SAAS;EACP,GAAI;EACJ,QAAQ,UAA2B;GACjC,SAAS,MAAM,UAAU,IAAI,4BAA2B,aAAY;IAClE,SAAS,UAAU,KACjB,eAAe,SAAS,QAAQ,EAChC,SAAS,QACV;KACD;;EAEL,CAAC,CACH;;;;;;;;;;;;;;;;;AAkBH,MAAa,SAAS,oBAAoB,sBAAsB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@powerlines/unplugin",
|
|
3
|
+
"version": "0.0.4",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"unplugin",
|
|
8
|
+
"powerlines",
|
|
9
|
+
"vite",
|
|
10
|
+
"rolldown",
|
|
11
|
+
"rollup",
|
|
12
|
+
"esbuild",
|
|
13
|
+
"tsdown",
|
|
14
|
+
"tsup",
|
|
15
|
+
"rspack",
|
|
16
|
+
"webpack",
|
|
17
|
+
"unbuild",
|
|
18
|
+
"next",
|
|
19
|
+
"nuxt",
|
|
20
|
+
"farm",
|
|
21
|
+
"astro",
|
|
22
|
+
"storm-software"
|
|
23
|
+
],
|
|
24
|
+
"homepage": "https://stormsoftware.com",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://stormsoftware.com/support",
|
|
27
|
+
"email": "support@stormsoftware.com"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "github",
|
|
31
|
+
"url": "https://github.com/storm-software/powerlines.git",
|
|
32
|
+
"directory": "packages/devtools/unplugin"
|
|
33
|
+
},
|
|
34
|
+
"funding": {
|
|
35
|
+
"type": "github",
|
|
36
|
+
"url": "https://github.com/sponsors/storm-software"
|
|
37
|
+
},
|
|
38
|
+
"license": "Apache-2.0",
|
|
39
|
+
"author": {
|
|
40
|
+
"name": "Storm Software",
|
|
41
|
+
"email": "contact@stormsoftware.com",
|
|
42
|
+
"url": "https://stormsoftware.com"
|
|
43
|
+
},
|
|
44
|
+
"maintainers": [
|
|
45
|
+
{
|
|
46
|
+
"name": "Storm Software",
|
|
47
|
+
"email": "contact@stormsoftware.com",
|
|
48
|
+
"url": "https://stormsoftware.com"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"contributors": [
|
|
52
|
+
{
|
|
53
|
+
"name": "Storm Software",
|
|
54
|
+
"email": "contact@stormsoftware.com",
|
|
55
|
+
"url": "https://stormsoftware.com"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"type": "module",
|
|
59
|
+
"exports": {
|
|
60
|
+
".": { "import": "./dist/index.mjs", "require": "./dist/index.cjs" },
|
|
61
|
+
"./astro": { "import": "./dist/astro.mjs", "require": "./dist/astro.cjs" },
|
|
62
|
+
"./esbuild": {
|
|
63
|
+
"import": "./dist/esbuild.mjs",
|
|
64
|
+
"require": "./dist/esbuild.cjs"
|
|
65
|
+
},
|
|
66
|
+
"./farm": { "import": "./dist/farm.mjs", "require": "./dist/farm.cjs" },
|
|
67
|
+
"./next": { "import": "./dist/next.mjs", "require": "./dist/next.cjs" },
|
|
68
|
+
"./nuxt": { "import": "./dist/nuxt.mjs", "require": "./dist/nuxt.cjs" },
|
|
69
|
+
"./rolldown": {
|
|
70
|
+
"import": "./dist/rolldown.mjs",
|
|
71
|
+
"require": "./dist/rolldown.cjs"
|
|
72
|
+
},
|
|
73
|
+
"./rollup": {
|
|
74
|
+
"import": "./dist/rollup.mjs",
|
|
75
|
+
"require": "./dist/rollup.cjs"
|
|
76
|
+
},
|
|
77
|
+
"./rspack": {
|
|
78
|
+
"import": "./dist/rspack.mjs",
|
|
79
|
+
"require": "./dist/rspack.cjs"
|
|
80
|
+
},
|
|
81
|
+
"./tsdown": {
|
|
82
|
+
"import": "./dist/tsdown.mjs",
|
|
83
|
+
"require": "./dist/tsdown.cjs"
|
|
84
|
+
},
|
|
85
|
+
"./tsup": { "import": "./dist/tsup.mjs", "require": "./dist/tsup.cjs" },
|
|
86
|
+
"./types": { "import": "./dist/types.mjs", "require": "./dist/types.cjs" },
|
|
87
|
+
"./unloader": {
|
|
88
|
+
"import": "./dist/unloader.mjs",
|
|
89
|
+
"require": "./dist/unloader.cjs"
|
|
90
|
+
},
|
|
91
|
+
"./unplugin": {
|
|
92
|
+
"import": "./dist/unplugin.mjs",
|
|
93
|
+
"require": "./dist/unplugin.cjs"
|
|
94
|
+
},
|
|
95
|
+
"./vite": { "import": "./dist/vite.mjs", "require": "./dist/vite.cjs" },
|
|
96
|
+
"./webpack": {
|
|
97
|
+
"import": "./dist/webpack.mjs",
|
|
98
|
+
"require": "./dist/webpack.cjs"
|
|
99
|
+
},
|
|
100
|
+
"./package.json": "./package.json"
|
|
101
|
+
},
|
|
102
|
+
"main": "./dist/index.cjs",
|
|
103
|
+
"module": "./dist/index.mjs",
|
|
104
|
+
"types": "./dist/index.d.cts",
|
|
105
|
+
"typings": "dist/index.d.mts",
|
|
106
|
+
"files": ["dist"],
|
|
107
|
+
"dependencies": {
|
|
108
|
+
"@powerlines/core": "^0.9.2",
|
|
109
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
110
|
+
"@rollup/plugin-inject": "^5.0.5",
|
|
111
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
112
|
+
"@rollup/plugin-replace": "^6.0.3",
|
|
113
|
+
"@stryke/convert": "^0.7.6",
|
|
114
|
+
"@stryke/fs": "^0.33.75",
|
|
115
|
+
"@stryke/helpers": "^0.10.15",
|
|
116
|
+
"@stryke/json": "^0.14.20",
|
|
117
|
+
"@stryke/path": "^0.29.2",
|
|
118
|
+
"@stryke/string-format": "^0.17.17",
|
|
119
|
+
"@stryke/type-checks": "^0.6.8",
|
|
120
|
+
"@stryke/types": "^0.12.3",
|
|
121
|
+
"@stryke/unique-id": "^0.3.86",
|
|
122
|
+
"defu": "^6.1.7",
|
|
123
|
+
"glob": "^13.0.6",
|
|
124
|
+
"jiti": "^2.7.0",
|
|
125
|
+
"rollup-plugin-typescript2": "^0.36.0"
|
|
126
|
+
},
|
|
127
|
+
"devDependencies": { "@types/node": "^25.7.0" },
|
|
128
|
+
"peerDependencies": {
|
|
129
|
+
"@farmfe/cli": ">=1.0.5",
|
|
130
|
+
"@farmfe/core": ">=1.7.11",
|
|
131
|
+
"@nuxt/kit": ">=4.1.1",
|
|
132
|
+
"@nuxt/schema": ">=4.1.1",
|
|
133
|
+
"astro": ">=5.13.5",
|
|
134
|
+
"esbuild": ">=0.17.19",
|
|
135
|
+
"next": ">=15.5.4",
|
|
136
|
+
"rolldown": ">=1.0.0-rc.16",
|
|
137
|
+
"rollup": ">=3.20.0",
|
|
138
|
+
"rspack": ">=0.1.1",
|
|
139
|
+
"tsdown": ">=0.21.9",
|
|
140
|
+
"tsup": ">=6.0.0",
|
|
141
|
+
"unloader": ">=0.5.0",
|
|
142
|
+
"vite": ">=8.0.0",
|
|
143
|
+
"webpack": ">=5.105.4"
|
|
144
|
+
},
|
|
145
|
+
"peerDependenciesMeta": {
|
|
146
|
+
"@farmfe/core": { "optional": true },
|
|
147
|
+
"@nuxt/kit": { "optional": true },
|
|
148
|
+
"@nuxt/schema": { "optional": true },
|
|
149
|
+
"astro": { "optional": true },
|
|
150
|
+
"esbuild": { "optional": true },
|
|
151
|
+
"next": { "optional": true },
|
|
152
|
+
"rolldown": { "optional": true },
|
|
153
|
+
"rollup": { "optional": true },
|
|
154
|
+
"rspack": { "optional": true },
|
|
155
|
+
"tsdown": { "optional": true },
|
|
156
|
+
"tsup": { "optional": true },
|
|
157
|
+
"unloader": { "optional": true },
|
|
158
|
+
"vite": { "optional": true },
|
|
159
|
+
"webpack": { "optional": true }
|
|
160
|
+
},
|
|
161
|
+
"publishConfig": { "access": "public" },
|
|
162
|
+
"gitHead": "3c5c701e16af74006dd70b965009d41eb22ace2a"
|
|
163
|
+
}
|